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 IndexAwarePredicate
public boolean isIndexed(QueryContext queryContext)
isIndexed
in interface IndexAwarePredicate
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.