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 Type
    Method
    Description
     
    default int
     
    float[]
     
    default float
     
    org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult
    getCorrectiveTerms(int vectorOrd)
     
    org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer
     

    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 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

      float[] getCentroid() throws IOException
      Returns:
      coarse grained centroids for the vectors
      Throws:
      IOException
    • copy

      Specified by:
      copy in interface org.apache.lucene.util.hnsw.RandomAccessVectorValues
      Specified by:
      copy in interface org.apache.lucene.util.hnsw.RandomAccessVectorValues.Bytes
      Throws:
      IOException
    • getCentroidDP

      default float getCentroidDP() throws IOException
      Throws:
      IOException