Module org.elasticsearch.server
Interface RandomAccessBinarizedByteVectorValues
- All Superinterfaces:
org.apache.lucene.util.hnsw.RandomAccessVectorValues,org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
public interface RandomAccessBinarizedByteVectorValues
extends org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
Copied from Lucene, replace with Lucene's implementation sometime after Lucene 10
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes, org.apache.lucene.util.hnsw.RandomAccessVectorValues.Floats -
Method Summary
Modifier and TypeMethodDescriptioncopy()default intfloat[]default floatorg.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResultgetCorrectiveTerms(int vectorOrd) org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizerMethods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
dimension, getAcceptOrds, getSlice, ordToDoc, sizeMethods inherited from interface org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
getVectorByteLength, vectorValue
-
Method Details
-
getCorrectiveTerms
org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult getCorrectiveTerms(int vectorOrd) throws IOException - Throws:
IOException
-
getQuantizer
org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer getQuantizer()- Returns:
- the quantizer used to quantize the vectors
-
discretizedDimensions
default int discretizedDimensions() -
getCentroid
- Returns:
- coarse grained centroids for the vectors
- Throws:
IOException
-
copy
- Specified by:
copyin interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues- Specified by:
copyin interfaceorg.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes- Throws:
IOException
-
getCentroidDP
- Throws:
IOException
-