Module org.apache.lucene.core
Interface RandomAccessQuantizedByteVectorValues
- All Superinterfaces:
RandomAccessVectorValues<byte[]>
- All Known Implementing Classes:
OffHeapQuantizedByteVectorValues,OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues,OffHeapQuantizedByteVectorValues.EmptyOffHeapVectorValues,OffHeapQuantizedByteVectorValues.SparseOffHeapVectorValues
Random access values for
byte[], but also includes accessing the score correction
constant for the current vector in the buffer.-
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a new copy of thisRandomAccessVectorValues.floatMethods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, ordToDoc, size, vectorValue
-
Method Details
-
getScoreCorrectionConstant
float getScoreCorrectionConstant() -
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 float vector returned byRandomAccessVectorValues.vectorValue(int).- Specified by:
copyin interfaceRandomAccessVectorValues<byte[]>- Throws:
IOException
-