public class InPredicate extends AbstractIndexAwarePredicate
| Constructor and Description | 
|---|
InPredicate()  | 
InPredicate(String attribute,
           Comparable... values)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
applyForSingleAttributeValue(Map.Entry entry,
                            Comparable attributeValue)  | 
Set<QueryableEntry> | 
filter(QueryContext queryContext)
Produces a filtered entry set by utilizing the indexes available while
 executing the query in the given query context. 
 | 
int | 
getId()
Returns type identifier for this class. 
 | 
void | 
readData(ObjectDataInput in)
Reads fields from the input stream 
 | 
String | 
toString()  | 
void | 
writeData(ObjectDataOutput out)
Writes object fields to output stream 
 | 
getIndex, isIndexedapply, convert, convertEnumValue, getFactoryId, readAttributeValuepublic InPredicate()
public InPredicate(String attribute, Comparable... values)
protected boolean applyForSingleAttributeValue(Map.Entry entry, Comparable attributeValue)
applyForSingleAttributeValue in class AbstractPredicatepublic 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.
queryContext - the query context to access the indexes.public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializablewriteData in class AbstractPredicateout - 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 DataSerializablereadData in class AbstractPredicatein - inputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     input stream has been closed.public int getId()
IdentifiedDataSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.