public abstract class AbstractIndexAwarePredicate<K,V> extends AbstractPredicate<K,V> implements IndexAwarePredicate<K,V>
Modifier | Constructor and Description |
---|---|
protected |
AbstractIndexAwarePredicate() |
protected |
AbstractIndexAwarePredicate(String attributeName) |
Modifier and Type | Method and Description |
---|---|
protected Index |
getIndex(QueryContext queryContext) |
boolean |
isIndexed(QueryContext queryContext)
Signals to the query engine that this predicate is able to utilize the
indexes available while executing the query in the given query context.
|
protected Index |
matchIndex(QueryContext queryContext,
QueryContext.IndexMatchHint matchHint) |
apply, applyForSingleAttributeValue, canEqual, convert, equals, getFactoryId, hashCode, readData, writeData
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
filter
getId
protected AbstractIndexAwarePredicate()
protected AbstractIndexAwarePredicate(String attributeName)
protected Index getIndex(QueryContext queryContext)
protected Index matchIndex(QueryContext queryContext, QueryContext.IndexMatchHint matchHint)
public boolean isIndexed(QueryContext queryContext)
IndexAwarePredicate
isIndexed
in interface IndexAwarePredicate<K,V>
queryContext
- the query context to consult for the available
indexes.true
if this predicate is able to use the indexes to
speed up the processing, false
otherwise.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.