Module org.elasticsearch.simdvec
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
ConstructorsConstructorDescriptionInt4VectorScorerSupplier(org.apache.lucene.store.IndexInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, VectorSimilarityType similarityType) -
Method Summary
-
Constructor Details
-
Int4VectorScorerSupplier
public Int4VectorScorerSupplier(org.apache.lucene.store.IndexInput input, org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues values, VectorSimilarityType similarityType)
-
-
Method Details
-
copy
- Specified by:
copyin interfaceorg.apache.lucene.util.hnsw.RandomVectorScorerSupplier- Throws:
IOException
-
scorer
public org.apache.lucene.util.hnsw.UpdateableRandomVectorScorer scorer()- Specified by:
scorerin interfaceorg.apache.lucene.util.hnsw.RandomVectorScorerSupplier
-
get
public org.apache.lucene.codecs.lucene104.QuantizedByteVectorValues get()
-