com.hazelcast.query
Class PredicateBuilder

java.lang.Object
  extended by com.hazelcast.query.PredicateBuilder
All Implemented Interfaces:
IndexAwarePredicate, Predicate, Serializable

public class PredicateBuilder
extends Object
implements Predicate, IndexAwarePredicate

See Also:
Serialized Form

Constructor Summary
PredicateBuilder()
           
 
Method Summary
 PredicateBuilder and(Predicate predicate)
           
 boolean apply(MapEntry mapEntry)
           
 void collectAppliedIndexes(Set<Index> setAppliedIndexes, Map<Expression,Index> mapIndexes)
           
 boolean collectIndexAwarePredicates(List<IndexAwarePredicate> lsIndexPredicates, Map<Expression,Index> mapIndexes)
           
 Set<MapEntry> filter(QueryContext queryContext)
           
 EntryObject getEntryObject()
           
 boolean isIndexed(QueryContext queryContext)
           
 PredicateBuilder or(Predicate predicate)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredicateBuilder

public PredicateBuilder()
Method Detail

apply

public boolean apply(MapEntry mapEntry)
Specified by:
apply in interface Predicate

collectIndexAwarePredicates

public boolean collectIndexAwarePredicates(List<IndexAwarePredicate> lsIndexPredicates,
                                           Map<Expression,Index> mapIndexes)
Specified by:
collectIndexAwarePredicates in interface IndexAwarePredicate

isIndexed

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

filter

public Set<MapEntry> filter(QueryContext queryContext)
Specified by:
filter in interface IndexAwarePredicate

collectAppliedIndexes

public void collectAppliedIndexes(Set<Index> setAppliedIndexes,
                                  Map<Expression,Index> mapIndexes)
Specified by:
collectAppliedIndexes in interface IndexAwarePredicate

getEntryObject

public EntryObject getEntryObject()

and

public PredicateBuilder and(Predicate predicate)

or

public PredicateBuilder or(Predicate predicate)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.