public class QueryContext extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
QueryContext.IndexMatchHint
Defines possible index matching hints.
|
| Constructor and Description |
|---|
QueryContext(Indexes indexes)
Creates a new query context with the given available indexes.
|
| Modifier and Type | Method and Description |
|---|---|
Index |
getIndex(String attribute)
Obtains the index available for the given attribute in this query
context.
|
Index |
matchIndex(String pattern,
QueryContext.IndexMatchHint matchHint)
Matches an index for the given pattern and match hint.
|
protected Indexes indexes
public QueryContext(Indexes indexes)
indexes - the indexes available for the query context.public Index getIndex(String attribute)
attribute - the attribute to obtain the index for.null if there is no index available
for the given attribute.public Index matchIndex(String pattern, QueryContext.IndexMatchHint matchHint)
pattern - the pattern to match an index for. May be either an
attribute name or an exact index name.matchHint - the match hint.null if nothing matched.QueryContext.IndexMatchHintCopyright © 2019 Hazelcast, Inc.. All Rights Reserved.