Module org.elasticsearch.server
Class OffHeapQuantizedByteVectorValues
java.lang.Object
org.apache.lucene.index.KnnVectorValues
org.apache.lucene.index.ByteVectorValues
org.apache.lucene.util.quantization.QuantizedByteVectorValues
org.elasticsearch.index.codec.vectors.OffHeapQuantizedByteVectorValues
- All Implemented Interfaces:
org.apache.lucene.codecs.lucene95.HasIndexSlice
- Direct Known Subclasses:
OffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues
public abstract class OffHeapQuantizedByteVectorValues
extends org.apache.lucene.util.quantization.QuantizedByteVectorValues
Copied from Lucene 10.3.
Read the quantized vector values and their score correction values from the index input. This
supports both iterated and random access.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDense vector values that are stored off-heap.Nested classes/interfaces inherited from class org.apache.lucene.index.KnnVectorValues
org.apache.lucene.index.KnnVectorValues.DocIndexIterator -
Method Summary
Modifier and TypeMethodDescriptionintorg.apache.lucene.util.quantization.ScalarQuantizerfloatgetScoreCorrectionConstant(int targetOrd) org.apache.lucene.store.IndexInputgetSlice()intintsize()byte[]vectorValue(int targetOrd) Methods inherited from class org.apache.lucene.util.quantization.QuantizedByteVectorValues
copy, scorerMethods inherited from class org.apache.lucene.index.ByteVectorValues
checkField, fromBytes, getEncoding, rescorer, scorerMethods inherited from class org.apache.lucene.index.KnnVectorValues
createDenseIterator, createSparseIterator, fromDISI, getAcceptOrds, iterator, ordToDoc
-
Method Details
-
getScalarQuantizer
public org.apache.lucene.util.quantization.ScalarQuantizer getScalarQuantizer()- Overrides:
getScalarQuantizerin classorg.apache.lucene.util.quantization.QuantizedByteVectorValues
-
dimension
public int dimension()- Specified by:
dimensionin classorg.apache.lucene.index.KnnVectorValues
-
size
public int size()- Specified by:
sizein classorg.apache.lucene.index.KnnVectorValues
-
vectorValue
- Specified by:
vectorValuein classorg.apache.lucene.index.ByteVectorValues- Throws:
IOException
-
getScoreCorrectionConstant
- Specified by:
getScoreCorrectionConstantin classorg.apache.lucene.util.quantization.QuantizedByteVectorValues- Throws:
IOException
-
getSlice
public org.apache.lucene.store.IndexInput getSlice()- Specified by:
getSlicein interfaceorg.apache.lucene.codecs.lucene95.HasIndexSlice- Overrides:
getSlicein classorg.apache.lucene.util.quantization.QuantizedByteVectorValues
-
getVectorByteLength
public int getVectorByteLength()- Overrides:
getVectorByteLengthin classorg.apache.lucene.index.KnnVectorValues
-