Interface RandomAccessQuantizedByteVectorValues
- All Superinterfaces:
RandomAccessVectorValues
,RandomAccessVectorValues.Bytes
- All Known Implementing Classes:
OffHeapQuantizedByteVectorValues
,OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues
Random access values for
byte[]
, but also includes accessing the score correction
constant for the current vector in the buffer.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
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
.float
getScoreCorrectionConstant
(int vectorOrd) Methods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, size
Methods 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:RandomAccessVectorValues
Creates 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:
copy
in interfaceRandomAccessVectorValues
- Specified by:
copy
in interfaceRandomAccessVectorValues.Bytes
- Throws:
IOException
-