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.BoundQuery
Nested 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>
void
getPlannerGraphDetails
(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) int
toString()
Methods inherited from class com.apple.foundationdb.record.lucene.LuceneBooleanQuery
getChildren, getOccur
Methods inherited from class com.apple.foundationdb.record.lucene.LuceneQueryClause
combineHighlightingTermsMaps, getHighlightingTermsMap, getQueryType, toBoundQuery
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
bind
in 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:
getPlannerGraphDetails
in classLuceneBooleanQuery
-
planHash
- Specified by:
planHash
in interfacePlanHashable
- Overrides:
planHash
in classLuceneBooleanQuery
-
toString
- Overrides:
toString
in classLuceneBooleanQuery
-