com.hazelcast.query
Class Predicates.AbstractPredicate

java.lang.Object
  extended by com.hazelcast.query.Predicates.AbstractPredicate
All Implemented Interfaces:
DataSerializable, IndexAwarePredicate, Predicate, Serializable
Direct Known Subclasses:
Predicates.BetweenPredicate, Predicates.EqualPredicate, Predicates.InPredicate, SqlPredicate
Enclosing class:
Predicates

public abstract static class Predicates.AbstractPredicate
extends Object
implements IndexAwarePredicate, DataSerializable

Provides some functionality for some predicates such as Between, In.

See Also:
Serialized Form

Field Summary
protected  String attribute
           
 
Constructor Summary
protected Predicates.AbstractPredicate()
           
protected Predicates.AbstractPredicate(String attribute)
           
 
Method Summary
protected  Comparable convert(Map.Entry mapEntry, Comparable entryValue, Comparable attributeValue)
           
protected  Index getIndex(QueryContext queryContext)
           
 boolean isIndexed(QueryContext queryContext)
           
protected  Comparable readAttribute(Map.Entry entry)
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.query.IndexAwarePredicate
filter
 
Methods inherited from interface com.hazelcast.query.Predicate
apply
 

Field Detail

attribute

protected String attribute
Constructor Detail

Predicates.AbstractPredicate

protected Predicates.AbstractPredicate()

Predicates.AbstractPredicate

protected Predicates.AbstractPredicate(String attribute)
Method Detail

convert

protected Comparable convert(Map.Entry mapEntry,
                             Comparable entryValue,
                             Comparable attributeValue)

isIndexed

public boolean isIndexed(QueryContext queryContext)
Specified by:
isIndexed in interface IndexAwarePredicate

getIndex

protected Index getIndex(QueryContext queryContext)

readAttribute

protected Comparable readAttribute(Map.Entry entry)

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


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.