Module org.elasticsearch.server
Class VectorIndexFieldData
java.lang.Object
org.elasticsearch.index.mapper.vectors.VectorIndexFieldData
- All Implemented Interfaces:
IndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
public class VectorIndexFieldData
extends Object
implements IndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
IndexFieldData.Global<FD extends LeafFieldData>, IndexFieldData.XFieldComparatorSource -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVectorIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, IndexVersion indexVersion, DenseVectorFieldMapper.ElementType elementType, int dims, boolean indexed, Function<org.apache.lucene.index.LeafReader, org.apache.lucene.index.LeafReader> readerWrapper) -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe field name.The ValuesSourceType of the underlying data.org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldDataload(org.apache.lucene.index.LeafReaderContext context) Loads the atomic field data for the reader, possibly cached.org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldDataloadDirect(org.apache.lucene.index.LeafReaderContext context) Loads directly the atomic field data for the reader, ignoring any caching involved.newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Build a sort implementation specialized for aggregations.org.apache.lucene.search.SortFieldsortField(Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Returns theSortFieldto use for sorting.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.fielddata.IndexFieldData
sortField
-
Field Details
-
fieldName
-
valuesSourceType
-
-
Constructor Details
-
VectorIndexFieldData
public VectorIndexFieldData(String fieldName, ValuesSourceType valuesSourceType, IndexVersion indexVersion, DenseVectorFieldMapper.ElementType elementType, int dims, boolean indexed, Function<org.apache.lucene.index.LeafReader, org.apache.lucene.index.LeafReader> readerWrapper)
-
-
Method Details
-
getFieldName
Description copied from interface:IndexFieldDataThe field name.- Specified by:
getFieldNamein interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
getValuesSourceType
Description copied from interface:IndexFieldDataThe ValuesSourceType of the underlying data. It's possible for fields that use the same IndexFieldData implementation to have different ValuesSourceTypes, such as in the case of Longs and Dates.- Specified by:
getValuesSourceTypein interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
sortField
public org.apache.lucene.search.SortField sortField(@Nullable Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, boolean reverse) Description copied from interface:IndexFieldDataReturns theSortFieldto use for sorting.- Specified by:
sortFieldin interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
newBucketedSort
public BucketedSort newBucketedSort(BigArrays bigArrays, Object missingValue, MultiValueMode sortMode, IndexFieldData.XFieldComparatorSource.Nested nested, SortOrder sortOrder, DocValueFormat format, int bucketSize, BucketedSort.ExtraData extra) Description copied from interface:IndexFieldDataBuild a sort implementation specialized for aggregations.- Specified by:
newBucketedSortin interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
load
public org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData load(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:IndexFieldDataLoads the atomic field data for the reader, possibly cached.- Specified by:
loadin interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-
loadDirect
public org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData loadDirect(org.apache.lucene.index.LeafReaderContext context) Description copied from interface:IndexFieldDataLoads directly the atomic field data for the reader, ignoring any caching involved.- Specified by:
loadDirectin interfaceIndexFieldData<org.elasticsearch.index.mapper.vectors.VectorDVLeafFieldData>
-