public class PredicateBuilder extends Object implements IndexAwarePredicate, DataSerializable
| Constructor and Description |
|---|
PredicateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
PredicateBuilder |
and(Predicate predicate) |
boolean |
apply(Map.Entry mapEntry) |
Set<QueryableEntry> |
filter(QueryContext queryContext) |
String |
getAttribute() |
EntryObject |
getEntryObject() |
boolean |
isIndexed(QueryContext queryContext) |
PredicateBuilder |
or(Predicate predicate) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setAttribute(String attribute) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public String getAttribute()
public void setAttribute(String attribute)
public EntryObject getEntryObject()
public PredicateBuilder and(Predicate predicate)
public PredicateBuilder or(Predicate predicate)
public Set<QueryableEntry> filter(QueryContext queryContext)
filter in interface IndexAwarePredicatepublic boolean isIndexed(QueryContext queryContext)
isIndexed in interface IndexAwarePredicatepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.