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 Object
implements RandomVectorScorerSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RandomAccessQuantizedByteVectorValuesprivate final RandomAccessQuantizedByteVectorValuesprivate final RandomAccessQuantizedByteVectorValuesprivate final VectorSimilarityFunction -
Constructor Summary
ConstructorsConstructorDescriptionScalarQuantizedRandomVectorScorerSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction vectorSimilarityFunction) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.scorer(int ord) This creates aRandomVectorScorerfor scoring random nodes in batches against the given ordinal.
-
Field Details
-
vectorSimilarityFunction
-
values
-
values1
-
values2
-
-
Constructor Details
-
ScalarQuantizedRandomVectorScorerSupplier
public ScalarQuantizedRandomVectorScorerSupplier(RandomAccessQuantizedByteVectorValues values, VectorSimilarityFunction vectorSimilarityFunction) throws IOException - Throws:
IOException
-
-
Method Details
-
scorer
Description copied from interface:RandomVectorScorerSupplierThis creates aRandomVectorScorerfor scoring random nodes in batches against the given ordinal.- Specified by:
scorerin interfaceRandomVectorScorerSupplier- Parameters:
ord- the ordinal of the node to compare- Returns:
- a new
RandomVectorScorer - Throws:
IOException
-
copy
public Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier copy() throws IOExceptionDescription copied from interface:RandomVectorScorerSupplierMake a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.- Specified by:
copyin interfaceRandomVectorScorerSupplier- Throws:
IOException
-