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
ConstructorsModifierConstructorDescriptionprotected
LuceneScanParameters
(IndexScanType scanType, ScanComparisons groupComparisons) protected
LuceneScanParameters
(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneScanParameters luceneScanParametersProto) -
Method Summary
Modifier and TypeMethodDescriptionabstract LuceneScanBounds
bind
(FDBRecordStoreBase<?> store, Index index, EvaluationContext context) boolean
protected Tuple
getGroupKey
(FDBRecordStoreBase<?> store, EvaluationContext context) protected String
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
hashCode()
indexTextFields
(Index index, RecordMetaData metaData) boolean
com.apple.foundationdb.record.planprotos.PLuceneScanParameters
toLuceneScanParametersProto
(PlanSerializationContext serializationContext) toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.apple.foundationdb.record.query.plan.cascades.Correlated
getCorrelatedTo, isCorrelatedTo, rebase, semanticEquals, semanticHashCode
Methods inherited from interface com.apple.foundationdb.record.provider.foundationdb.IndexScanParameters
explain, toIndexScanParametersProto, translateCorrelations
Methods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash, planHash
Methods 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:
getScanType
in interfaceIndexScanParameters
-
bind
@Nonnull public abstract LuceneScanBounds bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) - Specified by:
bind
in interfaceIndexScanParameters
-
getGroupComparisons
-
indexTextFields
@Nonnull protected static List<String> indexTextFields(@Nonnull Index index, @Nonnull RecordMetaData metaData) -
isUnique
- Specified by:
isUnique
in 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:
getPlannerGraphDetails
in interfaceIndexScanParameters
-
toString
-
equals
-
hashCode
public int hashCode() -
toLuceneScanParametersProto
@Nonnull public com.apple.foundationdb.record.planprotos.PLuceneScanParameters toLuceneScanParametersProto(@Nonnull PlanSerializationContext serializationContext)
-