Module org.apache.lucene.codecs
Class FlatBitVectorsScorer.BitRandomVectorScorerSupplier
java.lang.Object
org.apache.lucene.codecs.bitvectors.FlatBitVectorsScorer.BitRandomVectorScorerSupplier
- All Implemented Interfaces:
RandomVectorScorerSupplier
- Enclosing class:
FlatBitVectorsScorer
static class FlatBitVectorsScorer.BitRandomVectorScorerSupplier
extends Object
implements RandomVectorScorerSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteVectorValues
protected final ByteVectorValues
protected final ByteVectorValues
-
Constructor Summary
Constructors -
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 aRandomVectorScorer
for scoring random nodes in batches against the given ordinal.
-
Field Details
-
vectorValues
-
vectorValues1
-
vectorValues2
-
-
Constructor Details
-
BitRandomVectorScorerSupplier
- Throws:
IOException
-
-
Method Details
-
scorer
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:
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
-