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 classDeserializer.static classThe 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, scanTypeFields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLuceneScanQueryParameters(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) booleancom.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedenceexplain()static LuceneScanQueryParametersfromProto(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto) voidgetPlannerGraphDetails(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.SortgetSort()inthashCode()intbooleansemanticEquals(Object other, AliasMap aliasMap) intcom.apple.foundationdb.record.planprotos.PIndexScanParameterstoIndexScanParametersProto(PlanSerializationContext serializationContext) com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameterstoProto(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, toLuceneScanParametersProtoMethods 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
isCorrelatedToMethods 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:
planHashin interfacePlanHashable
-
bind
@Nonnull public LuceneScanQuery bind(@Nonnull FDBRecordStoreBase<?> store, @Nonnull Index index, @Nonnull EvaluationContext context) - Specified by:
bindin interfaceIndexScanParameters- Specified by:
bindin classLuceneScanParameters
-
explain
@Nonnull public com.apple.foundationdb.record.query.plan.explain.ExplainTokensWithPrecedence explain()- Specified by:
explainin 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:
getPlannerGraphDetailsin interfaceIndexScanParameters- Overrides:
getPlannerGraphDetailsin classLuceneScanParameters
-
translateCorrelations
@Nonnull public IndexScanParameters translateCorrelations(@Nonnull com.apple.foundationdb.record.query.plan.cascades.values.translation.TranslationMap translationMap, boolean shouldSimplifyValues) - Specified by:
translateCorrelationsin interfaceIndexScanParameters
-
rebase
- Specified by:
rebasein interfaceCorrelated<IndexScanParameters>
-
semanticEquals
- Specified by:
semanticEqualsin interfaceCorrelated<IndexScanParameters>
-
semanticHashCode
public int semanticHashCode()- Specified by:
semanticHashCodein interfaceCorrelated<IndexScanParameters>
-
toString
- Overrides:
toStringin classLuceneScanParameters
-
equals
- Overrides:
equalsin classLuceneScanParameters
-
hashCode
public int hashCode()- Overrides:
hashCodein classLuceneScanParameters
-
toProto
@Nonnull public com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters toProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toProtoin interfacePlanSerializable
-
toIndexScanParametersProto
@Nonnull public com.apple.foundationdb.record.planprotos.PIndexScanParameters toIndexScanParametersProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toIndexScanParametersProtoin interfaceIndexScanParameters
-
fromProto
@Nonnull public static LuceneScanQueryParameters fromProto(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PLuceneScanQueryParameters luceneScanQueryParametersProto)
-