com.hazelcast.query
Class PredicateBuilder
java.lang.Object
com.hazelcast.query.PredicateBuilder
- All Implemented Interfaces:
- DataSerializable, IndexAwarePredicate, Predicate, Serializable
public class PredicateBuilder
- extends Object
- implements IndexAwarePredicate, DataSerializable
This class provides functionality to build predicate.
- See Also:
- Serialized Form
PredicateBuilder
public PredicateBuilder()
getAttribute
public String getAttribute()
setAttribute
public void setAttribute(String attribute)
apply
public boolean apply(Map.Entry mapEntry)
- Specified by:
apply
in interface Predicate
getEntryObject
public EntryObject getEntryObject()
and
public PredicateBuilder and(Predicate predicate)
or
public PredicateBuilder or(Predicate predicate)
filter
public Set<QueryableEntry> filter(QueryContext queryContext)
- Specified by:
filter
in interface IndexAwarePredicate
isIndexed
public boolean isIndexed(QueryContext queryContext)
- Specified by:
isIndexed
in interface IndexAwarePredicate
writeData
public void writeData(ObjectDataOutput out)
throws IOException
- Description copied from interface:
DataSerializable
- Writes object fields to output stream
- Specified by:
writeData
in interface DataSerializable
- Parameters:
out
- output
- Throws:
IOException
readData
public void readData(ObjectDataInput in)
throws IOException
- Description copied from interface:
DataSerializable
- Reads fields from the input stream
- Specified by:
readData
in interface DataSerializable
- Parameters:
in
- input
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.