Class LuceneScanQueryParameters
java.lang.Object
com.apple.foundationdb.record.lucene.LuceneScanParameters
com.apple.foundationdb.record.lucene.LuceneScanQueryParameters
- All Implemented Interfaces:
PlanHashable
,PlanSerializable
,IndexScanParameters
,Correlated<IndexScanParameters>
@API(UNSTABLE)
public class LuceneScanQueryParameters
extends LuceneScanParameters
implements PlanSerializable
Scan parameters for making a
LuceneScanQuery
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deserializer.static class
The parameters for highlighting matching terms of a Lucene search.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
Fields inherited from class com.apple.foundationdb.record.lucene.LuceneScanParameters
groupComparisons, scanType
Fields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LuceneScanQueryParameters
(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto) LuceneScanQueryParameters
(ScanComparisons groupComparisons, LuceneQueryClause query) LuceneScanQueryParameters
(ScanComparisons groupComparisons, LuceneQueryClause query, org.apache.lucene.search.Sort sort, List<String> storedFields, List<LuceneIndexExpressions.DocumentFieldType> storedFieldTypes, LuceneScanQueryParameters.LuceneQueryHighlightParameters luceneQueryHighlightParameters) -
Method Summary
Modifier and TypeMethodDescriptionbind
(FDBRecordStoreBase<?> store, Index index, EvaluationContext context) boolean
com.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedence
explain()
static LuceneScanQueryParameters
fromProto
(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto) 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) getQuery()
org.apache.lucene.search.Sort
getSort()
int
hashCode()
int
boolean
semanticEquals
(Object other, AliasMap aliasMap) int
com.apple.foundationdb.record.planprotos.PIndexScanParameters
toIndexScanParametersProto
(PlanSerializationContext serializationContext) com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters
toProto
(PlanSerializationContext serializationContext) toString()
translateCorrelations
(com.apple.foundationdb.record.query.plan.cascades.values.translation.TranslationMap translationMap, boolean shouldSimplifyValues) Methods inherited from class com.apple.foundationdb.record.lucene.LuceneScanParameters
getGroupComparisons, getGroupKey, getGroupKeyWithoutContext, getGroupScanDetails, getScanType, indexTextFields, isUnique, toLuceneScanParametersProto
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
isCorrelatedTo
Methods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash
-
Constructor Details
-
LuceneScanQueryParameters
protected LuceneScanQueryParameters(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto) -
LuceneScanQueryParameters
public LuceneScanQueryParameters(@Nonnull ScanComparisons groupComparisons, @Nonnull LuceneQueryClause query) -
LuceneScanQueryParameters
public LuceneScanQueryParameters(@Nonnull ScanComparisons groupComparisons, @Nonnull LuceneQueryClause query, @Nullable org.apache.lucene.search.Sort sort, @Nullable List<String> storedFields, @Nullable List<LuceneIndexExpressions.DocumentFieldType> storedFieldTypes, @Nullable LuceneScanQueryParameters.LuceneQueryHighlightParameters luceneQueryHighlightParameters)
-
-
Method Details
-
getQuery
-
getSort
@Nullable public org.apache.lucene.search.Sort getSort() -
getStoredFields
-
getStoredFieldTypes
-
planHash
- Specified by:
planHash
in interfacePlanHashable
-
bind
@Nonnull public LuceneScanQuery bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) - Specified by:
bind
in interfaceIndexScanParameters
- Specified by:
bind
in classLuceneScanParameters
-
explain
@Nonnull public com.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedence explain()- Specified by:
explain
in interfaceIndexScanParameters
-
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
- Overrides:
getPlannerGraphDetails
in classLuceneScanParameters
-
translateCorrelations
@Nonnull public IndexScanParameters translateCorrelations(@Nonnull com.apple.foundationdb.record.query.plan.cascades.values.translation.TranslationMap translationMap, boolean shouldSimplifyValues) - Specified by:
translateCorrelations
in interfaceIndexScanParameters
-
rebase
- Specified by:
rebase
in interfaceCorrelated<IndexScanParameters>
-
semanticEquals
- Specified by:
semanticEquals
in interfaceCorrelated<IndexScanParameters>
-
semanticHashCode
public int semanticHashCode()- Specified by:
semanticHashCode
in interfaceCorrelated<IndexScanParameters>
-
toString
- Overrides:
toString
in classLuceneScanParameters
-
equals
- Overrides:
equals
in classLuceneScanParameters
-
hashCode
public int hashCode()- Overrides:
hashCode
in classLuceneScanParameters
-
toProto
@Nonnull public com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters toProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toProto
in interfacePlanSerializable
-
toIndexScanParametersProto
@Nonnull public com.apple.foundationdb.record.planprotos.PIndexScanParameters toIndexScanParametersProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toIndexScanParametersProto
in interfaceIndexScanParameters
-
fromProto
@Nonnull public static LuceneScanQueryParameters fromProto(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto)
-