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
Fields Modifier and Type Field Description private float
constMultiplier
private byte[]
targetBytes
private RandomAccessQuantizedByteVectorValues
values
-
Constructor Summary
Constructors Modifier Constructor Description private
Euclidean(RandomAccessQuantizedByteVectorValues values, float constMultiplier, byte[] targetBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
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 Detail
-
constMultiplier
private final float constMultiplier
-
targetBytes
private final byte[] targetBytes
-
values
private final RandomAccessQuantizedByteVectorValues values
-
-
Constructor Detail
-
Euclidean
private Euclidean(RandomAccessQuantizedByteVectorValues values, float constMultiplier, byte[] targetBytes)
-
-
Method Detail
-
score
public float score(int node) throws java.io.IOException
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:
java.io.IOException
-
-