Package org.apache.lucene.codecs.hnsw
Class ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
java.lang.Object
org.apache.lucene.codecs.hnsw.ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
- All Implemented Interfaces:
RandomVectorScorerSupplier
- Enclosing class:
ScalarQuantizedVectorScorer
public static class ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier
extends Object
implements RandomVectorScorerSupplier
Quantized vector scorer supplier
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionScalarQuantizedRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, QuantizedByteVectorValues values) -
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()
This creates aUpdateableRandomVectorScorer
for scoring random nodes in batches against an ordinal.toString()
-
Constructor Details
-
ScalarQuantizedRandomVectorScorerSupplier
public ScalarQuantizedRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, QuantizedByteVectorValues values)
-
-
Method Details
-
scorer
Description copied from interface:RandomVectorScorerSupplier
This creates aUpdateableRandomVectorScorer
for scoring random nodes in batches against an ordinal.- Specified by:
scorer
in interfaceRandomVectorScorerSupplier
- Returns:
- a new
UpdateableRandomVectorScorer
- Throws:
IOException
-
copy
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:
IOException
-
toString
-