Module org.elasticsearch.server
Class DenseVectorDocValuesField
java.lang.Object
org.elasticsearch.script.field.AbstractScriptFieldFactory<DenseVector>
org.elasticsearch.script.field.vectors.DenseVectorDocValuesField
- All Implemented Interfaces:
- Iterable<DenseVector>,- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>,- DenseVectorScriptDocValues.DenseVectorSupplier,- DocValuesScriptFieldFactory,- Field<DenseVector>,- ScriptFieldFactory
- Direct Known Subclasses:
- BinaryDenseVectorDocValuesField,- KnnDenseVectorDocValuesField
public abstract class DenseVectorDocValuesField
extends AbstractScriptFieldFactory<DenseVector>
implements Field<DenseVector>, DocValuesScriptFieldFactory, DenseVectorScriptDocValues.DenseVectorSupplier
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract DenseVectorget()Get the DenseVector for a document if one exists, DenseVector.EMPTY otherwiseabstract DenseVectorget(DenseVector defaultValue) org.apache.lucene.util.BytesRefgetInternal(int index) getName()Returns the name of this field.iterator()intsize()Returns the number of values this field has.abstract DenseVectorScriptDocValuesReturns aScriptDocValuesof the appropriate type for this field.Methods inherited from class org.elasticsearch.script.field.AbstractScriptFieldFactorytoScriptFieldMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.mapper.vectors.DenseVectorScriptDocValues.DenseVectorSuppliergetInternalMethods inherited from interface org.elasticsearch.script.field.DocValuesScriptFieldFactorysetNextDocIdMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface org.elasticsearch.index.fielddata.ScriptDocValues.SuppliersetNextDocIdMethods inherited from interface org.elasticsearch.script.field.ScriptFieldFactorytoScriptField
- 
Field Details- 
name
 
- 
- 
Constructor Details- 
DenseVectorDocValuesField
 
- 
- 
Method Details- 
getNameDescription copied from interface:FieldReturns the name of this field.- Specified by:
- getNamein interface- Field<DenseVector>
 
- 
sizepublic int size()Description copied from interface:FieldReturns the number of values this field has.- Specified by:
- sizein interface- Field<DenseVector>
- Specified by:
- sizein interface- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
 
- 
getInternalpublic org.apache.lucene.util.BytesRef getInternal(int index) - Specified by:
- getInternalin interface- DenseVectorScriptDocValues.DenseVectorSupplier
- Specified by:
- getInternalin interface- ScriptDocValues.Supplier<org.apache.lucene.util.BytesRef>
 
- 
getGet the DenseVector for a document if one exists, DenseVector.EMPTY otherwise
- 
get
- 
toScriptDocValuesDescription 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 interface- DocValuesScriptFieldFactory
 
- 
iterator- Specified by:
- iteratorin interface- Iterable<DenseVector>
 
 
-