public final class GreaterLessPredicate extends AbstractIndexAwarePredicate implements NegatablePredicate
Modifier and Type | Field and Description |
---|---|
protected Comparable |
value |
Constructor and Description |
---|
GreaterLessPredicate() |
GreaterLessPredicate(String attribute,
Comparable value,
boolean equal,
boolean less) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
applyForSingleAttributeValue(Map.Entry mapEntry,
Comparable attributeValue) |
Set<QueryableEntry> |
filter(QueryContext queryContext) |
int |
getId()
Returns type identifier for this class.
|
Predicate |
negate()
Create logical negation of itself.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
getIndex, isIndexed
apply, convert, convertEnumValue, getFactoryId, readAttributeValue
protected Comparable value
public GreaterLessPredicate()
public GreaterLessPredicate(String attribute, Comparable value, boolean equal, boolean less)
protected boolean applyForSingleAttributeValue(Map.Entry mapEntry, Comparable attributeValue)
applyForSingleAttributeValue
in class AbstractPredicate
public Set<QueryableEntry> filter(QueryContext queryContext)
filter
in interface IndexAwarePredicate
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
readData
in class AbstractPredicate
in
- inputIOException
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
writeData
in class AbstractPredicate
out
- outputIOException
public Predicate negate()
NegatablePredicate
negate
in interface NegatablePredicate
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.