Class LuceneIndexKeyValueToPartialRecordUtils.LuceneSpellCheckCopier
java.lang.Object
com.apple.foundationdb.record.lucene.LuceneIndexKeyValueToPartialRecordUtils.LuceneSpellCheckCopier
- All Implemented Interfaces:
PlanHashable,PlanSerializable,IndexKeyValueToPartialRecord.Copier
- Enclosing class:
- LuceneIndexKeyValueToPartialRecordUtils
public static class LuceneIndexKeyValueToPartialRecordUtils.LuceneSpellCheckCopier
extends Object
implements IndexKeyValueToPartialRecord.Copier
The copier to populate the lucene auto complete suggestion as a value for the field where it is indexed from.
So the suggestion can be returned as a
FDBQueriedRecord for query.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeserializer.Nested classes/interfaces inherited from interface com.apple.foundationdb.record.PlanHashable
PlanHashable.PlanHashKind, PlanHashable.PlanHashMode -
Field Summary
Fields inherited from interface com.apple.foundationdb.record.PlanHashable
CURRENT_FOR_CONTINUATION, CURRENT_LEGACY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(Descriptors.Descriptor recordDescriptor, Message.Builder recordBuilder, IndexEntry kv) booleanfromProto(PlanSerializationContext serializationContext, com.apple.foundationdb.record.planprotos.PLuceneSpellCheckCopier luceneSpellCheckCopierProto) inthashCode()intplanHash(PlanHashable.PlanHashMode hashMode) com.apple.foundationdb.record.planprotos.PIndexKeyValueToPartialRecord.PCopiertoCopierProto(PlanSerializationContext serializationContext) com.apple.foundationdb.record.planprotos.PLuceneSpellCheckCopiertoProto(PlanSerializationContext serializationContext) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.apple.foundationdb.record.PlanHashable
planHash, planHash
-
Constructor Details
-
LuceneSpellCheckCopier
public LuceneSpellCheckCopier(int groupingColumnSize)
-
-
Method Details
-
copy
public boolean copy(@Nonnull Descriptors.Descriptor recordDescriptor, @Nonnull Message.Builder recordBuilder, @Nonnull IndexEntry kv) - Specified by:
copyin interfaceIndexKeyValueToPartialRecord.Copier
-
equals
-
hashCode
public int hashCode() -
planHash
- Specified by:
planHashin interfacePlanHashable
-
toProto
@Nonnull public com.apple.foundationdb.record.planprotos.PLuceneSpellCheckCopier toProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toProtoin interfacePlanSerializable
-
toCopierProto
@Nonnull public com.apple.foundationdb.record.planprotos.PIndexKeyValueToPartialRecord.PCopier toCopierProto(@Nonnull PlanSerializationContext serializationContext) - Specified by:
toCopierProtoin interfaceIndexKeyValueToPartialRecord.Copier
-
fromProto
@Nonnull public static LuceneIndexKeyValueToPartialRecordUtils.LuceneSpellCheckCopier fromProto(@Nonnull PlanSerializationContext serializationContext, @Nonnull com.apple.foundationdb.record.planprotos.PLuceneSpellCheckCopier luceneSpellCheckCopierProto)
-