Class LuceneScanParameters
java.lang.Object
com.apple.foundationdb.record.lucene.LuceneScanParameters
- All Implemented Interfaces:
PlanHashable,PlanSerializable,IndexScanParameters,Correlated<IndexScanParameters>
- Direct Known Subclasses:
LuceneScanQueryParameters,LuceneScanSpellCheckParameters
@API(UNSTABLE)
public abstract class LuceneScanParameters
extends Object
implements IndexScanParameters
Base class for
IndexScanParameters used by LUCENE indexes.
Stores any group comparisons used to determine the directory location.-
Nested Class Summary
Nested 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.PlanHashMode -
Field Summary
FieldsFields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLuceneScanParameters(IndexScanType scanType, ScanComparisons groupComparisons) protectedLuceneScanParameters(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneScanParameters luceneScanParametersProto) -
Method Summary
Modifier and TypeMethodDescriptionabstract LuceneScanBoundsbind(FDBRecordStoreBase<?> store, Index index, EvaluationContext context) booleanprotected TuplegetGroupKey(FDBRecordStoreBase<?> store, EvaluationContext context) protected StringvoidgetPlannerGraphDetails(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) inthashCode()indexTextFields(Index index, RecordMetaData metaData) booleancom.apple.foundationdb.record.planprotos.PLuceneScanParameterstoLuceneScanParametersProto(PlanSerializationContext serializationContext) toString()Methods 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, isCorrelatedTo, rebase, semanticEquals, semanticHashCodeMethods inherited from interface com.apple.foundationdb.record.provider.foundationdb.IndexScanParameters
explain, toIndexScanParametersProto, translateCorrelationsMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash, planHashMethods inherited from interface com.apple.foundationdb.record.PlanSerializable
toProto
-
Field Details
-
scanType
-
groupComparisons
-
-
Constructor Details
-
LuceneScanParameters
protected LuceneScanParameters(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PLuceneScanParameters luceneScanParametersProto) -
LuceneScanParameters
protected LuceneScanParameters(@Nonnull IndexScanType scanType, @Nonnull ScanComparisons groupComparisons)
-
-
Method Details
-
getScanType
- Specified by:
getScanTypein interfaceIndexScanParameters
-
bind
@Nonnull public abstract LuceneScanBounds bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) - Specified by:
bindin interfaceIndexScanParameters
-
getGroupComparisons
-
indexTextFields
@Nonnull protected static List<String> indexTextFields(@Nonnull Index index, @Nonnull RecordMetaData metaData) -
isUnique
- Specified by:
isUniquein interfaceIndexScanParameters
-
getGroupScanDetails
-
getGroupKey
@Nonnull protected Tuple getGroupKey(@Nullable FDBRecordStoreBase<?> store, @Nullable EvaluationContext context) -
getGroupKeyWithoutContext
-
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) - Specified by:
getPlannerGraphDetailsin interfaceIndexScanParameters
-
toString
-
equals
-
hashCode
public int hashCode() -
toLuceneScanParametersProto
@Nonnull public com.apple.foundationdb.record.planprotos.PLuceneScanParameters toLuceneScanParametersProto(@Nonnull PlanSerializationContext serializationContext)
-