Class NotPredicate
- java.lang.Object
-
- com.apple.foundationdb.record.query.predicates.NotPredicate
-
- All Implemented Interfaces:
PlanHashable
,Bindable
,QueryPredicate
@API(EXPERIMENTAL) public class NotPredicate extends Object implements QueryPredicate
AQueryPredicate
that is satisfied when its child component is not satisfied. For tri-valued logic, if the child evaluates to unknown /null
,NOT
is still unknown.
-
-
Field Summary
Fields Modifier and Type Field Description QueryPredicate
child
-
Constructor Summary
Constructors Constructor Description NotPredicate(QueryPredicate child)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<PlannerBindings>
bindTo(ExpressionMatcher<? extends Bindable> matcher)
Attempt to match the matcher to this bindable object.boolean
equals(Object o)
<M extends Message>
Booleaneval(FDBRecordStoreBase<M> store, EvaluationContext context, SourceEntry sourceEntry)
QueryPredicate
getChild()
int
hashCode()
int
planHash()
Return a hash similar tohashCode
, but with the additional guarantee that is is stable across JVMs.String
toString()
-
-
-
Field Detail
-
child
@Nonnull public final QueryPredicate child
-
-
Constructor Detail
-
NotPredicate
public NotPredicate(@Nonnull QueryPredicate child)
-
-
Method Detail
-
eval
@Nullable public <M extends Message> Boolean eval(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext context, @Nonnull SourceEntry sourceEntry)
- Specified by:
eval
in interfaceQueryPredicate
-
getChild
@Nonnull public QueryPredicate getChild()
-
bindTo
@Nonnull public Stream<PlannerBindings> bindTo(@Nonnull ExpressionMatcher<? extends Bindable> matcher)
Description copied from interface:Bindable
Attempt to match the matcher to this bindable object.
-
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.- Specified by:
planHash
in interfacePlanHashable
- Returns:
- a stable hash code
-
-