Class Lucene102BinaryFlatVectorsScorer
java.lang.Object
org.apache.lucene.backward_codecs.lucene102.Lucene102BinaryFlatVectorsScorer
- All Implemented Interfaces:
FlatVectorsScorer
Vector scorer over binarized vector values
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final floatScaling factor for 4-bit quantizationprotected final FlatVectorsScorerThe delegate scorer for non-quantized vectors -
Constructor Summary
ConstructorsConstructorDescriptionLucene102BinaryFlatVectorsScorer(FlatVectorsScorer nonQuantizedDelegate) Construct a new scorer -
Method Summary
Modifier and TypeMethodDescriptiongetRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) toString()
-
Field Details
-
nonQuantizedDelegate
The delegate scorer for non-quantized vectors -
FOUR_BIT_SCALE
protected static final float FOUR_BIT_SCALEScaling factor for 4-bit quantization- See Also:
-
-
Constructor Details
-
Lucene102BinaryFlatVectorsScorer
Construct a new scorer- Parameters:
nonQuantizedDelegate- the delegate scorer for non-quantized vectors
-
-
Method Details
-
getRandomVectorScorerSupplier
public RandomVectorScorerSupplier getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) throws IOException - Specified by:
getRandomVectorScorerSupplierin interfaceFlatVectorsScorer- Throws:
IOException
-
getRandomVectorScorer
public RandomVectorScorer getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) throws IOException - Specified by:
getRandomVectorScorerin interfaceFlatVectorsScorer- Throws:
IOException
-
getRandomVectorScorer
public RandomVectorScorer getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) throws IOException - Specified by:
getRandomVectorScorerin interfaceFlatVectorsScorer- Throws:
IOException
-
toString
-