Module org.elasticsearch.simdvec
Class DefaultES93BinaryQuantizedVectorScorer
java.lang.Object
org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
org.elasticsearch.simdvec.internal.vectorization.DefaultES93BinaryQuantizedVectorScorer
- Direct Known Subclasses:
NativeBinaryQuantizedVectorScorer
-
Field Summary
FieldsFields inherited from class org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
byteSize, dimensions, FOUR_BIT_SCALE, numBytes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultES93BinaryQuantizedVectorScorer(org.apache.lucene.store.IndexInput slice, int dimension, int numBytes) -
Method Summary
Modifier and TypeMethodDescriptionfloatscore(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int targetOrd) Methods inherited from class org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
applyCorrections, scoreBulk
-
Field Details
-
slice
protected final org.apache.lucene.store.IndexInput slice
-
-
Constructor Details
-
DefaultES93BinaryQuantizedVectorScorer
public DefaultES93BinaryQuantizedVectorScorer(org.apache.lucene.store.IndexInput slice, int dimension, int numBytes)
-
-
Method Details
-
score
public float score(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int targetOrd) throws IOException - Specified by:
scorein classES93BinaryQuantizedVectorScorer- Throws:
IOException
-