Module org.apache.lucene.core
Interface RandomAccessQuantizedByteVectorValues
- All Superinterfaces:
RandomAccessVectorValues,RandomAccessVectorValues.Bytes
- 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.-
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.floatgetScoreCorrectionConstant(int vectorOrd) Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, sizeMethods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
getVectorByteLength, vectorValue
-
Method Details
-
getScalarQuantizer
ScalarQuantizer getScalarQuantizer() -
getScoreCorrectionConstant
- Throws:
IOException
-
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- Specified by:
copyin interfaceRandomAccessVectorValues.Bytes- Throws:
IOException
-