Module org.apache.lucene.core
Class Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
- java.lang.Object
-
- org.apache.lucene.codecs.lucene99.Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
-
- All Implemented Interfaces:
RandomVectorScorerSupplier
- Enclosing class:
- Lucene99ScalarQuantizedVectorScorer
private static final class Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier extends java.lang.Object implements RandomVectorScorerSupplier
-
-
Field Summary
Fields Modifier and Type Field Description private RandomAccessQuantizedByteVectorValues
values
private RandomAccessQuantizedByteVectorValues
values1
private RandomAccessQuantizedByteVectorValues
values2
private VectorSimilarityFunction
vectorSimilarityFunction
-
Constructor Summary
Constructors Constructor Description ScalarQuantizedRandomVectorScorerSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction vectorSimilarityFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
copy()
Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.RandomVectorScorer
scorer(int ord)
This creates aRandomVectorScorer
for scoring random nodes in batches against the given ordinal.
-
-
-
Field Detail
-
vectorSimilarityFunction
private final VectorSimilarityFunction vectorSimilarityFunction
-
values
private final RandomAccessQuantizedByteVectorValues values
-
values1
private final RandomAccessQuantizedByteVectorValues values1
-
values2
private final RandomAccessQuantizedByteVectorValues values2
-
-
Constructor Detail
-
ScalarQuantizedRandomVectorScorerSupplier
public ScalarQuantizedRandomVectorScorerSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction vectorSimilarityFunction) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
scorer
public RandomVectorScorer scorer(int ord) throws java.io.IOException
Description copied from interface:RandomVectorScorerSupplier
This creates aRandomVectorScorer
for scoring random nodes in batches against the given ordinal.- Specified by:
scorer
in interfaceRandomVectorScorerSupplier
- Parameters:
ord
- the ordinal of the node to compare- Returns:
- a new
RandomVectorScorer
- Throws:
java.io.IOException
-
copy
public Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier copy() throws java.io.IOException
Description copied from interface:RandomVectorScorerSupplier
Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.- Specified by:
copy
in interfaceRandomVectorScorerSupplier
- Throws:
java.io.IOException
-
-