Class QuantizedByteVectorValues
java.lang.Object
org.apache.lucene.index.KnnVectorValues
org.apache.lucene.index.ByteVectorValues
org.apache.lucene.util.quantization.QuantizedByteVectorValues
- All Implemented Interfaces:
HasIndexSlice
- Direct Known Subclasses:
OffHeapQuantizedByteVectorValues
A version of
ByteVectorValues
, but additionally retrieving score correction offset for
Scalar quantization scores.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.KnnVectorValues
KnnVectorValues.DocIndexIterator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a new copy of thisKnnVectorValues
.abstract float
getScoreCorrectionConstant
(int ord) getSlice()
Returns an IndexInput from which to read this instance's values.scorer
(float[] query) Return aVectorScorer
for the given query vector.Methods inherited from class org.apache.lucene.index.ByteVectorValues
checkField, fromBytes, getEncoding, scorer, vectorValue
Methods inherited from class org.apache.lucene.index.KnnVectorValues
createDenseIterator, createSparseIterator, dimension, fromDISI, getAcceptOrds, getVectorByteLength, iterator, ordToDoc, size
-
Constructor Details
-
QuantizedByteVectorValues
public QuantizedByteVectorValues()
-
-
Method Details
-
getScalarQuantizer
-
getScoreCorrectionConstant
- Throws:
IOException
-
scorer
Return aVectorScorer
for the given query vector.- Parameters:
query
- the query vector- Returns:
- a
VectorScorer
instance or null - Throws:
IOException
-
copy
Description copied from class:KnnVectorValues
Creates a new copy of thisKnnVectorValues
. This is helpful when you need to access different values at once, to avoid overwriting the underlying vector returned.- Specified by:
copy
in classByteVectorValues
- Throws:
IOException
-
getSlice
Description copied from interface:HasIndexSlice
Returns an IndexInput from which to read this instance's values.- Specified by:
getSlice
in interfaceHasIndexSlice
-