Module org.elasticsearch.server
Class RankVectorsDocValuesField
java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<RankVectors>
org.elasticsearch.script.field.vectors.RankVectorsDocValuesField
- All Implemented Interfaces:
Iterable<RankVectors>,ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>,RankVectorsScriptDocValues.RankVectorsSupplier,DocValuesScriptFieldFactory,Field<RankVectors>,ScriptFieldFactory
- Direct Known Subclasses:
ByteRankVectorsDocValuesField,FloatRankVectorsDocValuesField
public abstract class RankVectorsDocValuesField
extends AbstractScriptFieldFactory<RankVectors>
implements Field<RankVectors>, DocValuesScriptFieldFactory, RankVectorsScriptDocValues.RankVectorsSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DenseVectorFieldMapper.ElementTypeprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionRankVectorsDocValuesField(String name, DenseVectorFieldMapper.ElementType elementType) -
Method Summary
Modifier and TypeMethodDescriptionabstract RankVectorsget()Get the DenseVector for a document if one exists, DenseVector.EMPTY otherwiseabstract RankVectorsget(RankVectors defaultValue) getName()Returns the name of this field.iterator()abstract RankVectorsScriptDocValuesReturns aScriptDocValuesof the appropriate type for this field.Methods inherited from class org.elasticsearch.script.field.AbstractScriptFieldFactory
toScriptFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.script.field.DocValuesScriptFieldFactory
setNextDocIdMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.elasticsearch.index.mapper.vectors.RankVectorsScriptDocValues.RankVectorsSupplier
getInternal, getInternalMethods inherited from interface org.elasticsearch.index.fielddata.ScriptDocValues.Supplier
setNextDocId, sizeMethods inherited from interface org.elasticsearch.script.field.ScriptFieldFactory
toScriptField
-
Field Details
-
name
-
elementType
-
-
Constructor Details
-
RankVectorsDocValuesField
-
-
Method Details
-
getName
Description copied from interface:FieldReturns the name of this field.- Specified by:
getNamein interfaceField<RankVectors>
-
getElementType
-
get
Get the DenseVector for a document if one exists, DenseVector.EMPTY otherwise -
get
-
toScriptDocValues
Description copied from interface:DocValuesScriptFieldFactoryReturns aScriptDocValuesof the appropriate type for this field. This is used to support backwards compatibility for accessing field values through thedocvariable.- Specified by:
toScriptDocValuesin interfaceDocValuesScriptFieldFactory
-
iterator
- Specified by:
iteratorin interfaceIterable<RankVectors>
-