Class Int7uOSQVectorScorer

java.lang.Object
org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer
org.elasticsearch.simdvec.internal.Int7uOSQVectorScorer
All Implemented Interfaces:
org.apache.lucene.util.hnsw.HasKnnVectorValues, org.apache.lucene.util.hnsw.RandomVectorScorer
Direct Known Subclasses:
Int7uOSQVectorScorer.DotProductScorer, Int7uOSQVectorScorer.EuclideanScorer, Int7uOSQVectorScorer.MaxInnerProductScorer

public abstract sealed class Int7uOSQVectorScorer extends org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer permits Int7uOSQVectorScorer.DotProductScorer, Int7uOSQVectorScorer.EuclideanScorer, Int7uOSQVectorScorer.MaxInnerProductScorer
JDK-22+ implementation for Int7 OSQ query-time scorers.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
    static final class 
     
    static final class 
     

    Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorer

    org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    bulkScore(int[] nodes, float[] scores, int numNodes)
     
    static Optional<org.apache.lucene.util.hnsw.RandomVectorScorer>
    create(org.apache.lucene.index.VectorSimilarityFunction sim, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, byte[] quantizedQuery, float lowerInterval, float upperInterval, float additionalCorrection, int quantizedComponentSum)
     
    float
    score(int node)
     

    Methods inherited from class org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer

    getAcceptOrds, maxOrd, ordToDoc, values

    Methods inherited from class java.lang.Object

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

    • create

      public static Optional<org.apache.lucene.util.hnsw.RandomVectorScorer> create(org.apache.lucene.index.VectorSimilarityFunction sim, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, byte[] quantizedQuery, float lowerInterval, float upperInterval, float additionalCorrection, int quantizedComponentSum)
    • score

      public float score(int node) throws IOException
      Throws:
      IOException
    • bulkScore

      public float bulkScore(int[] nodes, float[] scores, int numNodes) throws IOException
      Throws:
      IOException