public final class NotEqualPredicate extends EqualPredicate
value| Constructor and Description |
|---|
NotEqualPredicate() |
NotEqualPredicate(String attribute,
Comparable value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Map.Entry entry)
Applies this predicate to the given map entry.
|
Set<QueryableEntry> |
filter(QueryContext queryContext)
Produces a filtered entry set by utilizing the indexes available while
executing the query in the given query context.
|
int |
getId()
Returns type identifier for this class.
|
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.
|
Predicate |
negate()
Create logical negation of itself.
|
String |
toString() |
applyForSingleAttributeValue, readData, writeDatagetIndexconvert, convertEnumValue, getFactoryId, readAttributeValuepublic NotEqualPredicate()
public NotEqualPredicate(String attribute, Comparable value)
public boolean apply(Map.Entry entry)
PredicateImplementations must be thread-safe, since this method may be called by multiple threads concurrently.
apply in interface Predicateapply in class AbstractPredicateentry - the map entry to apply this predicate to.true if the given map entry matches this predicate,
false otherwise.public boolean isIndexed(QueryContext queryContext)
IndexAwarePredicateisIndexed in interface IndexAwarePredicateisIndexed in class AbstractIndexAwarePredicatequeryContext - 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.public Set<QueryableEntry> filter(QueryContext queryContext)
IndexAwarePredicateThe query engine assumes this method produces the result set faster than a simple evaluation of the predicate on every entry.
filter in interface IndexAwarePredicatefilter in class EqualPredicatequeryContext - the query context to access the indexes.public String toString()
toString in class EqualPredicatepublic Predicate negate()
NegatablePredicatenegate in interface NegatablePredicatenegate in class EqualPredicatepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablegetId in class EqualPredicateCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.