public class PredicateBuilderImpl extends Object implements PredicateBuilder, PredicateBuilder.EntryObject, IndexAwarePredicate, DataSerializable
PredicateBuilder.EntryObject| Constructor and Description |
|---|
PredicateBuilderImpl() |
public String getAttribute()
getAttribute in interface PredicateBuilderpublic void setAttribute(String attribute)
setAttribute in interface PredicateBuilderpublic boolean apply(Map.Entry mapEntry)
PredicateImplementations must be thread-safe, since this method may be called by multiple threads concurrently.
public PredicateBuilder.EntryObject getEntryObject()
getEntryObject in interface PredicateBuilderpublic PredicateBuilder and(Predicate predicate)
and in interface PredicateBuilderpublic PredicateBuilder or(Predicate predicate)
or in interface PredicateBuilderpublic 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 IndexAwarePredicatequeryContext - the query context to access the indexes. The passed
query context is valid only for a duration of a single
call to the method.public boolean isIndexed(QueryContext queryContext)
IndexAwarePredicateisIndexed in interface IndexAwarePredicatequeryContext - 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 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.public PredicateBuilder.EntryObject get(String attribute)
get in interface PredicateBuilder.EntryObjectpublic PredicateBuilder.EntryObject key()
key in interface PredicateBuilder.EntryObjectpublic PredicateBuilder is(String attribute)
is in interface PredicateBuilder.EntryObjectpublic PredicateBuilder isNot(String attribute)
isNot in interface PredicateBuilder.EntryObjectpublic PredicateBuilder equal(Comparable value)
equal in interface PredicateBuilder.EntryObjectpublic PredicateBuilder notEqual(Comparable value)
notEqual in interface PredicateBuilder.EntryObjectpublic PredicateBuilder isNull()
isNull in interface PredicateBuilder.EntryObjectpublic PredicateBuilder isNotNull()
isNotNull in interface PredicateBuilder.EntryObjectpublic PredicateBuilder greaterThan(Comparable value)
greaterThan in interface PredicateBuilder.EntryObjectpublic PredicateBuilder greaterEqual(Comparable value)
greaterEqual in interface PredicateBuilder.EntryObjectpublic PredicateBuilder lessThan(Comparable value)
lessThan in interface PredicateBuilder.EntryObjectpublic PredicateBuilder lessEqual(Comparable value)
lessEqual in interface PredicateBuilder.EntryObjectpublic PredicateBuilder between(Comparable from, Comparable to)
between in interface PredicateBuilder.EntryObjectpublic PredicateBuilder in(Comparable... values)
in in interface PredicateBuilder.EntryObjectCopyright © 2019 Hazelcast, Inc.. All rights reserved.