Class Int4VectorScorerSupplier

java.lang.Object
org.elasticsearch.simdvec.internal.Int4VectorScorerSupplier
All Implemented Interfaces:
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier

public final class Int4VectorScorerSupplier extends Object implements org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
Int4 packed-nibble scorer supplier. Each stored vector is dims/2 packed bytes (two 4-bit values per byte), followed by corrective terms (3 floats + 1 int). The query is unpacked to dims bytes before scoring.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Int4VectorScorerSupplier(org.apache.lucene.store.IndexInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, VectorSimilarityType similarityType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
     
    org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues
    get()
     
    org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer
     

    Methods inherited from class java.lang.Object

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

    • Int4VectorScorerSupplier

      public Int4VectorScorerSupplier(org.apache.lucene.store.IndexInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, VectorSimilarityType similarityType)
  • Method Details

    • copy

      public org.apache.lucene.util.hnsw.RandomVectorScorerSupplier copy() throws IOException
      Specified by:
      copy in interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
      Throws:
      IOException
    • 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.codecs.lucene104.QuantizedByteVectorValues get()