Class BaseQuantizedByteVectorValues
java.lang.Object
org.apache.lucene.index.KnnVectorValues
org.apache.lucene.index.ByteVectorValues
org.apache.lucene.util.quantization.BaseQuantizedByteVectorValues
- All Implemented Interfaces:
HasIndexSlice
- Direct Known Subclasses:
LegacyQuantizedByteVectorValues,QuantizedByteVectorValues
public abstract class BaseQuantizedByteVectorValues
extends ByteVectorValues
implements HasIndexSlice
A version of
ByteVectorValues 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 TypeMethodDescriptiongetSlice()Returns an IndexInput from which to read this instance's values, or null if not available.scorer(float[] query) Return aVectorScorerfor the given query vector.Methods inherited from class org.apache.lucene.index.ByteVectorValues
checkField, copy, fromBytes, getEncoding, rescorer, scorer, vectorValueMethods inherited from class org.apache.lucene.index.KnnVectorValues
createDenseIterator, createSparseIterator, dimension, fromDISI, getAcceptOrds, getVectorByteLength, iterator, ordToDoc, prefetch, size
-
Constructor Details
-
BaseQuantizedByteVectorValues
public BaseQuantizedByteVectorValues()
-
-
Method Details
-
scorer
Return aVectorScorerfor the given query vector.- Parameters:
query- the query vector- Returns:
- a
VectorScorerinstance or null - Throws:
IOException
-
getSlice
Description copied from interface:HasIndexSliceReturns an IndexInput from which to read this instance's values, or null if not available.- Specified by:
getSlicein interfaceHasIndexSlice
-