Class LuceneIndexSpellCheckQueryPlan
java.lang.Object
com.apple.foundationdb.record.query.plan.cascades.expressions.AbstractRelationalExpression
com.apple.foundationdb.record.query.plan.cascades.expressions.AbstractRelationalExpressionWithoutChildren
com.apple.foundationdb.record.query.plan.plans.RecordQueryIndexPlan
com.apple.foundationdb.record.lucene.LuceneIndexQueryPlan
com.apple.foundationdb.record.lucene.LuceneIndexSpellCheckQueryPlan
- All Implemented Interfaces:
PlanHashable,PlanSerializable,Correlated<RelationalExpression>,com.apple.foundationdb.record.query.plan.cascades.explain.PlannerGraphRewritable,RelationalExpression,Narrowable<RelationalExpression>,com.apple.foundationdb.record.query.plan.cascades.typing.Typed,QueryPlan<FDBQueriedRecord<Message>>,RecordQueryPlan,RecordQueryPlanWithComparisons,RecordQueryPlanWithConstraint,RecordQueryPlanWithExplain,RecordQueryPlanWithIndex,RecordQueryPlanWithMatchCandidate,RecordQueryPlanWithNoChildren,PlanWithOrderingKey,PlanWithStoredFields
Lucene query plan that allows to make spell-check suggestions.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.apple.foundationdb.record.lucene.LuceneIndexQueryPlan
LuceneIndexQueryPlan.DeserializerNested classes/interfaces inherited from interface com.apple.foundationdb.record.query.plan.cascades.Correlated
Correlated.BoundEquivalence<S extends Correlated<S>>Nested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashModeNested classes/interfaces inherited from interface com.apple.foundationdb.record.query.plan.cascades.expressions.RelationalExpression
RelationalExpression.CombineFunction<R extends Object,S extends Object>, RelationalExpression.CombinePredicate -
Field Summary
Fields inherited from class com.apple.foundationdb.record.query.plan.plans.RecordQueryIndexPlan
BASE_HASH, indexName, LOGGER, reverse, scanParameters, strictlySortedFields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACYFields inherited from interface com.apple.foundationdb.record.query.plan.plans.QueryPlan
UNKNOWN_MAX_CARDINALITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLuceneIndexSpellCheckQueryPlan(String indexName, LuceneScanParameters scanParameters, RecordQueryFetchFromPartialRecordPlan.FetchIndexRecords fetchIndexRecords, boolean reverse, PlanOrderingKey planOrderingKey, List<KeyExpression> storedFields) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAuto-Complete and Spell-Check scan has their own implementation forIndexKeyValueToPartialRecordto build partial records, so they are not appropriate for the optimization byRecordQueryCoveringIndexPlan.com.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedenceexplain()<M extends Message>
RecordCursor<FDBQueriedRecord<M>>fetchIndexRecords(FDBRecordStoreBase<M> store, EvaluationContext evaluationContext, Function<byte[], RecordCursor<IndexEntry>> entryCursorFunction, byte[] continuation, ExecuteProperties executeProperties) protected RecordQueryIndexPlanwithIndexScanParameters(IndexScanParameters newIndexScanParameters) Methods inherited from class com.apple.foundationdb.record.lucene.LuceneIndexQueryPlan
computeHashCodeWithoutChildren, equals, fromProto, getComparisons, getPlanOrderingKey, getStoredFields, getStoredFields, hasComparisons, of, toLuceneIndexPlanProto, toProto, toRecordQueryPlanProtoMethods inherited from class com.apple.foundationdb.record.query.plan.plans.RecordQueryIndexPlan
canBeMinimized, computeCorrelatedToWithoutChildren, createIndexPlannerGraph, equalsWithoutChildren, executeEntries, executePlan, fromProto, getAvailableFields, getCommonPrimaryKey, getComparisonRanges, getComplexity, getConstraint, getFetchIndexRecords, getIndexFetchMethod, getIndexName, getMatchCandidateMaybe, getResultValue, getScanComparisons, getScanParameters, getScanType, getUsedIndexes, hasComparisonRanges, hasFullRecordScan, hashCode, hasIndexScan, hasLoadBykeys, hasRecordScan, hasScanComparisons, isReverse, isStrictlySorted, logPlanStructure, maxCardinality, minimize, planHash, strictlySorted, toRecordQueryIndexPlanProto, toString, translateCorrelationsMethods inherited from class com.apple.foundationdb.record.query.plan.cascades.expressions.AbstractRelationalExpressionWithoutChildren
getCorrelatedToMethods inherited from class com.apple.foundationdb.record.query.plan.cascades.expressions.AbstractRelationalExpression
getCorrelatedToWithoutChildren, hashCodeWithoutChildrenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.query.plan.cascades.Correlated
getCorrelatedTo, isCorrelatedToMethods inherited from interface com.apple.foundationdb.record.query.plan.cascades.Narrowable
narrowMaybeMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHashMethods inherited from interface com.apple.foundationdb.record.query.plan.plans.QueryPlan
collectDescendantPlans, execute, executeMethods inherited from interface com.apple.foundationdb.record.query.plan.plans.RecordQueryPlan
accept, execute, execute, execute, execute, getQueryPlanChildren, minimize, structuralEquals, structuralEquals, structuralHashCodeMethods inherited from interface com.apple.foundationdb.record.query.plan.plans.RecordQueryPlanWithIndex
rewritePlannerGraphMethods inherited from interface com.apple.foundationdb.record.query.plan.plans.RecordQueryPlanWithMatchCandidate
getMatchCandidateMethods inherited from interface com.apple.foundationdb.record.query.plan.plans.RecordQueryPlanWithNoChildren
getChildren, getQuantifiersMethods inherited from interface com.apple.foundationdb.record.query.plan.cascades.expressions.RelationalExpression
acceptVisitor, adjustMatch, bindIdentities, canCorrelate, compensate, enumerateUnboundCorrelatedTo, exactlySubsumedBy, findMatches, getCorrelatedToWithoutChildren, getCorrelationOrder, getDynamicTypes, getMatchedQuantifiers, getResultType, hashCodeWithoutChildren, hasIncompatibleBoundQuantifiers, hasUnboundQuantifiers, isCompatiblyAndCompletelyBound, match, match, rebase, semanticEquals, semanticEquals, semanticEqualsForResults, semanticHashCode, show, showExploratory, subsumedBy, withQuantifiersMethods inherited from interface com.apple.foundationdb.record.query.plan.cascades.typing.Typed
describe
-
Constructor Details
-
LuceneIndexSpellCheckQueryPlan
protected LuceneIndexSpellCheckQueryPlan(@Nonnull String indexName, @Nonnull LuceneScanParameters scanParameters, @Nonnull RecordQueryFetchFromPartialRecordPlan.FetchIndexRecords fetchIndexRecords, boolean reverse, @Nullable PlanOrderingKey planOrderingKey, @Nullable List<KeyExpression> storedFields)
-
-
Method Details
-
fetchIndexRecords
@Nonnull public <M extends Message> RecordCursor<FDBQueriedRecord<M>> fetchIndexRecords(@Nonnull FDBRecordStoreBase<M> store, @Nonnull EvaluationContext evaluationContext, @Nonnull Function<byte[], RecordCursor<IndexEntry>> entryCursorFunction, @Nullable byte[] continuation, @Nonnull ExecuteProperties executeProperties) -
allowedForCoveringIndexPlan
public boolean allowedForCoveringIndexPlan()Auto-Complete and Spell-Check scan has their own implementation forIndexKeyValueToPartialRecordto build partial records, so they are not appropriate for the optimization byRecordQueryCoveringIndexPlan.- Specified by:
allowedForCoveringIndexPlanin interfaceRecordQueryPlanWithIndex- Overrides:
allowedForCoveringIndexPlanin classLuceneIndexQueryPlan
-
withIndexScanParameters
@Nonnull protected RecordQueryIndexPlan withIndexScanParameters(@Nonnull IndexScanParameters newIndexScanParameters) - Overrides:
withIndexScanParametersin classLuceneIndexQueryPlan
-
explain
@Nonnull public com.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedence explain()- Specified by:
explainin interfaceRecordQueryPlanWithExplain- Overrides:
explainin classLuceneIndexQueryPlan
-