Package org.apache.lucene.util.hnsw
Class RandomVectorScorerSupplier.FloatScoringSupplier
- java.lang.Object
-
- org.apache.lucene.util.hnsw.RandomVectorScorerSupplier.FloatScoringSupplier
-
- All Implemented Interfaces:
RandomVectorScorerSupplier
- Enclosing interface:
- RandomVectorScorerSupplier
public static final class RandomVectorScorerSupplier.FloatScoringSupplier extends Object implements RandomVectorScorerSupplier
RandomVectorScorerSupplier for Float vector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
RandomVectorScorerSupplier.ByteScoringSupplier, RandomVectorScorerSupplier.FloatScoringSupplier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomVectorScorerSuppliercopy()Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.RandomVectorScorerscorer(int ord)This creates aRandomVectorScorerfor scoring random nodes in batches against the given ordinal.
-
-
-
Method Detail
-
scorer
public RandomVectorScorer scorer(int ord) throws IOException
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 RandomVectorScorerSupplier copy() throws IOException
Description 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
-
-