Class LuceneNotQuery
java.lang.Object
com.apple.foundationdb.record.lucene.LuceneQueryClause
com.apple.foundationdb.record.lucene.LuceneBooleanQuery
com.apple.foundationdb.record.lucene.LuceneNotQuery
- All Implemented Interfaces:
PlanHashable
Binder for a negation of clauses.
Because of the way Lucene
BooleanQuery works, this actually represents set subtraction,
with a set of positive and negative clauses. For the same reason, there is no disjunctive analogue.-
Nested Class Summary
Nested classes/interfaces inherited from class com.apple.foundationdb.record.lucene.LuceneQueryClause
LuceneQueryClause.BoundQueryNested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
Fields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
ConstructorsConstructorDescriptionLuceneNotQuery(LuceneQueryType queryType, LuceneQueryClause negatedChild) LuceneNotQuery(LuceneQueryType queryType, List<LuceneQueryClause> children, List<LuceneQueryClause> negatedChildren) -
Method Summary
Modifier and TypeMethodDescriptionbind(FDBRecordStoreBase<?> store, Index index, EvaluationContext context) protected List<LuceneQueryClause>voidgetPlannerGraphDetails(com.google.common.collect.ImmutableList.Builder<String> detailsBuilder, com.google.common.collect.ImmutableMap.Builder<String, com.apple.foundationdb.record.query.plan.cascades.explain.Attribute> attributeMapBuilder) inttoString()Methods inherited from class com.apple.foundationdb.record.lucene.LuceneBooleanQuery
getChildren, getOccurMethods inherited from class com.apple.foundationdb.record.lucene.LuceneQueryClause
combineHighlightingTermsMaps, getHighlightingTermsMap, getQueryType, toBoundQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash
-
Constructor Details
-
LuceneNotQuery
public LuceneNotQuery(@Nonnull LuceneQueryType queryType, @Nonnull List<LuceneQueryClause> children, @Nonnull List<LuceneQueryClause> negatedChildren) -
LuceneNotQuery
-
-
Method Details
-
getNegatedChildren
-
bind
public LuceneQueryClause.BoundQuery bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) - Overrides:
bindin classLuceneBooleanQuery
-
getPlannerGraphDetails
public void getPlannerGraphDetails(@Nonnull com.google.common.collect.ImmutableList.Builder<String> detailsBuilder, @Nonnull com.google.common.collect.ImmutableMap.Builder<String, com.apple.foundationdb.record.query.plan.cascades.explain.Attribute> attributeMapBuilder) - Overrides:
getPlannerGraphDetailsin classLuceneBooleanQuery
-
planHash
- Specified by:
planHashin interfacePlanHashable- Overrides:
planHashin classLuceneBooleanQuery
-
toString
- Overrides:
toStringin classLuceneBooleanQuery
-