Interface RandomAccessQuantizedByteVectorValues
-
- All Superinterfaces:
RandomAccessVectorValues
,RandomAccessVectorValues.Bytes
- All Known Implementing Classes:
OffHeapQuantizedByteVectorValues
,OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues
public interface RandomAccessQuantizedByteVectorValues extends RandomAccessVectorValues.Bytes
Random access values forbyte[]
, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RandomAccessQuantizedByteVectorValues
copy()
Creates a new copy of thisRandomAccessVectorValues
.ScalarQuantizer
getScalarQuantizer()
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 Detail
-
getScalarQuantizer
ScalarQuantizer getScalarQuantizer()
-
getScoreCorrectionConstant
float getScoreCorrectionConstant(int vectorOrd) throws IOException
- Throws:
IOException
-
copy
RandomAccessQuantizedByteVectorValues copy() throws IOException
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
-
-