Class Int7SQVectorScorerSupplier

java.lang.Object
org.elasticsearch.simdvec.internal.Int7SQVectorScorerSupplier
All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier, QuantizedByteVectorValuesAccess
Direct Known Subclasses:
Int7SQVectorScorerSupplier.DotProductSupplier, Int7SQVectorScorerSupplier.EuclideanSupplier, Int7SQVectorScorerSupplier.MaxInnerProductSupplier

public abstract sealed class Int7SQVectorScorerSupplier extends Object implements org.apache.lucene.util.hnsw.RandomVectorScorerSupplier, QuantizedByteVectorValuesAccess permits Int7SQVectorScorerSupplier.EuclideanSupplier, Int7SQVectorScorerSupplier.DotProductSupplier, Int7SQVectorScorerSupplier.MaxInnerProductSupplier
Int7SQVectorScorerSupplier relies on preview features of the Java platform:
  • Int7SQVectorScorerSupplier refers to one or more preview APIs: MemorySegment.
Programs can only use Int7SQVectorScorerSupplier when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Constructor Details

    • Int7SQVectorScorerSupplier

      protected Int7SQVectorScorerSupplier(org.apache.lucene.store.MemorySegmentAccessInput input, org.apache.lucene.util.quantization.QuantizedByteVectorValues values, float scoreCorrectionConstant, org.apache.lucene.util.quantization.ScalarQuantizedVectorSimilarity fallbackScorer)
  • Method Details

    • checkOrdinal

      protected final void checkOrdinal(int ord)
    • bulkScoreFromSegment

      protected abstract float bulkScoreFromSegment(MemorySegmentPREVIEW vectors, int vectorLength, int vectorPitch, int firstOrd, MemorySegmentPREVIEW ordinals, MemorySegmentPREVIEW scores, int numNodes)
    • scorer

      public org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer scorer()
      Specified by:
      scorer in interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
    • get

      public org.apache.lucene.util.quantization.QuantizedByteVectorValues get()
      Specified by:
      get in interface QuantizedByteVectorValuesAccess