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
.float
Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, ordToDoc, size, vectorValue
-
Method Details
-
getScoreCorrectionConstant
float getScoreCorrectionConstant() -
copy
Description copied from interface:RandomAccessVectorValues
Creates 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:
copy
in interfaceRandomAccessVectorValues<byte[]>
- Throws:
IOException
-