Class AndPredicate
- java.lang.Object
-
- com.apple.foundationdb.record.query.predicates.AndOrPredicate
-
- com.apple.foundationdb.record.query.predicates.AndPredicate
-
- All Implemented Interfaces:
PlanHashable
,Bindable
,QueryPredicate
public class AndPredicate extends AndOrPredicate
AQueryPredicate
that is satisfied when all of its child components are; For tri-valued logic:- If all children are
true
, thentrue
. - If any child is
false
, thenfalse
. - Else
null
.
-
-
Constructor Summary
Constructors Constructor Description AndPredicate(List<QueryPredicate> children)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
<M extends Message>
Booleaneval(FDBRecordStoreBase<M> store, EvaluationContext context, SourceEntry sourceEntry)
int
hashCode()
int
planHash()
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.String
toString()
-
Methods inherited from class com.apple.foundationdb.record.query.predicates.AndOrPredicate
bindTo, getChildren
-
-
-
-
Constructor Detail
-
AndPredicate
public AndPredicate(@Nonnull List<QueryPredicate> children)
-
-
Method Detail
-
eval
@Nullable public <M extends Message> Boolean eval(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext context, @Nonnull SourceEntry sourceEntry)
-
planHash
public int planHash()
Description copied from interface:PlanHashable
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.- Returns:
- a stable hash code
-
-