Module org.apache.lucene.core
Class Lucene99ScalarQuantizedVectorScorer.Euclidean
java.lang.Object
org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer
org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorScorer.Euclidean
- All Implemented Interfaces:
RandomVectorScorer
- Enclosing class:
Lucene99ScalarQuantizedVectorScorer
private static class Lucene99ScalarQuantizedVectorScorer.Euclidean
extends RandomVectorScorer.AbstractRandomVectorScorer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorer
RandomVectorScorer.AbstractRandomVectorScorer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
private final byte[]
private final QuantizedByteVectorValues
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Euclidean
(QuantizedByteVectorValues values, float constMultiplier, byte[] targetBytes) -
Method Summary
Modifier and TypeMethodDescriptionfloat
score
(int node) Returns the score between the query and the provided node.Methods inherited from class org.apache.lucene.util.hnsw.RandomVectorScorer.AbstractRandomVectorScorer
getAcceptOrds, maxOrd, ordToDoc
-
Field Details
-
constMultiplier
private final float constMultiplier -
targetBytes
private final byte[] targetBytes -
values
-
-
Constructor Details
-
Euclidean
-
-
Method Details
-
score
Description copied from interface:RandomVectorScorer
Returns the score between the query and the provided node.- Parameters:
node
- a random node in the graph- Returns:
- the computed score
- Throws:
IOException
-