com.hazelcast.query
Class PredicateBuilder

java.lang.Object
  extended by 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

Constructor Summary
PredicateBuilder()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateBuilder

public PredicateBuilder()
Method Detail

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.