Module org.apache.lucene.core
Package org.apache.lucene.util.hnsw
Interface RandomAccessVectorValues.Floats
- All Superinterfaces:
RandomAccessVectorValues
- All Known Implementing Classes:
Lucene90HnswVectorsReader.OffHeapFloatVectorValues,Lucene91HnswVectorsReader.OffHeapFloatVectorValues,OffHeapFloatVectorValues,OffHeapFloatVectorValues,OffHeapFloatVectorValues,OffHeapFloatVectorValues.DenseOffHeapVectorValues,OffHeapFloatVectorValues.DenseOffHeapVectorValues,OffHeapFloatVectorValues.DenseOffHeapVectorValues,OffHeapFloatVectorValues.EmptyOffHeapVectorValues,OffHeapFloatVectorValues.EmptyOffHeapVectorValues,OffHeapFloatVectorValues.EmptyOffHeapVectorValues,OffHeapFloatVectorValues.SparseOffHeapVectorValues,OffHeapFloatVectorValues.SparseOffHeapVectorValues,OffHeapFloatVectorValues.SparseOffHeapVectorValues,Word2VecModel
- Enclosing interface:
RandomAccessVectorValues
Float vector values.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
RandomAccessVectorValues.Bytes, RandomAccessVectorValues.Floats -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a new copy of thisRandomAccessVectorValues.default intReturns the vector byte length, defaults to dimension multiplied by float byte sizefloat[]vectorValue(int targetOrd) Return the vector value indexed at the given ordinal.Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, size
-
Method Details
-
copy
Description copied from interface:RandomAccessVectorValuesCreates a new copy of thisRandomAccessVectorValues. This is helpful when you need to access different values at once, to avoid overwriting the underlying vector returned.- Specified by:
copyin interfaceRandomAccessVectorValues- Throws:
IOException
-
vectorValue
Return the vector value indexed at the given ordinal.- Parameters:
targetOrd- a valid ordinal, ≥ 0 and <RandomAccessVectorValues.size().- Throws:
IOException
-
getVectorByteLength
default int getVectorByteLength()Returns the vector byte length, defaults to dimension multiplied by float byte size- Specified by:
getVectorByteLengthin interfaceRandomAccessVectorValues
-