java.lang.Object
org.elasticsearch.simdvec.internal.vectorization.ScoreCorrections

public class ScoreCorrections extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static float
    nativeApplyCorrectionsBulk(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, MemorySegment corrections, int bulkSize, int dimensions, float queryLowerInterval, float queryUpperInterval, int queryComponentSum, float queryAdditionalCorrection, float queryBitScale, float indexBitScale, float centroidDp, MemorySegment scores)
     
    static float
    nativeBbqApplyCorrectionsBulk(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, MemorySegment data, int bulkSize, int vectorSizeInBytes, int pitchInBytes, int dimensions, float queryLowerInterval, float queryUpperInterval, int queryComponentSum, float queryAdditionalCorrection, float queryBitScale, float indexBitScale, float centroidDp, boolean readComponentSumAsInt, MemorySegment scores)
    Apply corrections to a bulk of scores, reading per-vector correction trailers inline at addresses[i] + vectorSizeInBytes (BBQ-style layout).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ScoreCorrections

      public ScoreCorrections()
  • Method Details

    • nativeApplyCorrectionsBulk

      public static float nativeApplyCorrectionsBulk(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, MemorySegment corrections, int bulkSize, int dimensions, float queryLowerInterval, float queryUpperInterval, int queryComponentSum, float queryAdditionalCorrection, float queryBitScale, float indexBitScale, float centroidDp, MemorySegment scores)
    • nativeBbqApplyCorrectionsBulk

      public static float nativeBbqApplyCorrectionsBulk(org.apache.lucene.index.VectorSimilarityFunction similarityFunction, MemorySegment data, int bulkSize, int vectorSizeInBytes, int pitchInBytes, int dimensions, float queryLowerInterval, float queryUpperInterval, int queryComponentSum, float queryAdditionalCorrection, float queryBitScale, float indexBitScale, float centroidDp, boolean readComponentSumAsInt, MemorySegment scores)
      Apply corrections to a bulk of scores, reading per-vector correction trailers inline at addresses[i] + vectorSizeInBytes (BBQ-style layout). The trailing target component sum is encoded either as a 4-byte int (readComponentSumAsInt = true, or as a 2-byte unsigned short zero-extended to int (readComponentSumAsInt = false), mirroring writeComponentSumAsInt in DiskBBQBulkWriter)