Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
Packages that use RandomVectorScorerSupplier
Package
Description
A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graph
HNSW vector helper classes.
Lucene 9.9 file format.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of RandomVectorScorerSupplier in org.apache.lucene.codecs.bitvectors
Classes in org.apache.lucene.codecs.bitvectors that implement RandomVectorScorerSupplierModifier and TypeClassDescription(package private) static class
Methods in org.apache.lucene.codecs.bitvectors that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionFlatBitVectorsScorer.BitRandomVectorScorerSupplier.copy()
FlatBitVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of RandomVectorScorerSupplier in org.apache.lucene.codecs.hnsw
Classes in org.apache.lucene.codecs.hnsw that implement RandomVectorScorerSupplierModifier and TypeClassDescriptionprivate static final class
RandomVectorScorerSupplier for bytes vectorprivate static final class
RandomVectorScorerSupplier for Float vectorstatic class
Quantized vector scorer supplierMethods in org.apache.lucene.codecs.hnsw that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionDefaultFlatVectorScorer.ByteScoringSupplier.copy()
DefaultFlatVectorScorer.FloatScoringSupplier.copy()
ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier.copy()
DefaultFlatVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) FlatVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) Returns aRandomVectorScorerSupplier
that can be used to score vectorsScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of RandomVectorScorerSupplier in org.apache.lucene.codecs.lucene99
Classes in org.apache.lucene.codecs.lucene99 that implement RandomVectorScorerSupplierModifier and TypeClassDescription(package private) static final class
private static final class
(package private) static final class
Fields in org.apache.lucene.codecs.lucene99 declared as RandomVectorScorerSupplierModifier and TypeFieldDescriptionprivate final RandomVectorScorerSupplier
Lucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier.supplier
private final RandomVectorScorerSupplier
Lucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier.supplier
Methods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionLucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier.copy()
Lucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier.copy()
Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) Methods in org.apache.lucene.codecs.lucene99 with parameters of type RandomVectorScorerSupplierModifier and TypeMethodDescriptionprivate HnswGraphMerger
Lucene99HnswVectorsWriter.createGraphMerger
(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, TaskExecutor parallelMergeTaskExecutor, int numParallelMergeWorkers) Constructors in org.apache.lucene.codecs.lucene99 with parameters of type RandomVectorScorerSupplierModifierConstructorDescription(package private)
FlatCloseableRandomVectorScorerSupplier
(Closeable onClose, int numVectors, RandomVectorScorerSupplier supplier) (package private)
ScalarQuantizedCloseableRandomVectorScorerSupplier
(Closeable onClose, int numVectors, RandomVectorScorerSupplier supplier) -
Uses of RandomVectorScorerSupplier in org.apache.lucene.util.hnsw
Subinterfaces of RandomVectorScorerSupplier in org.apache.lucene.util.hnswModifier and TypeInterfaceDescriptioninterface
A supplier that createsRandomVectorScorer
from an ordinal.Fields in org.apache.lucene.util.hnsw declared as RandomVectorScorerSupplierModifier and TypeFieldDescriptionprivate final RandomVectorScorerSupplier
HnswGraphBuilder.scorerSupplier
protected final RandomVectorScorerSupplier
IncrementalHnswGraphMerger.scorerSupplier
Methods in org.apache.lucene.util.hnsw that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionRandomVectorScorerSupplier.copy()
Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.Methods in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorerSupplierModifier and TypeMethodDescriptionvoid
NeighborArray.addAndEnsureDiversity
(int newNode, float newScore, int nodeId, RandomVectorScorerSupplier scorerSupplier) In addition toNeighborArray.addOutOfOrder(int, float)
, this function will also remove the least-diverse node if the node array is full after insertionstatic HnswGraphBuilder
HnswGraphBuilder.create
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed) static HnswGraphBuilder
HnswGraphBuilder.create
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, int graphSize) private int
NeighborArray.findWorstNonDiverse
(int nodeOrd, RandomVectorScorerSupplier scorerSupplier) Find first non-diverse neighbour among the list of neighbors starting from the most distant neighboursstatic InitializedHnswGraphBuilder
InitializedHnswGraphBuilder.fromGraph
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, HnswGraph initializerGraph, int[] newOrdMap, BitSet initializedNodes, int totalNumberOfVectors) Create a new HnswGraphBuilder that is initialized with the provided HnswGraph.private boolean
NeighborArray.isWorstNonDiverse
(int candidateIndex, int[] uncheckedIndexes, int uncheckedCursor, RandomVectorScorerSupplier scorerSupplier) Constructors in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorerSupplierModifierConstructorDescriptionConcurrentHnswMerger
(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, TaskExecutor taskExecutor, int numWorker) private
ConcurrentMergeWorker
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, HnswLock hnswLock, BitSet initializedNodes, AtomicInteger workProgress) HnswConcurrentMergeBuilder
(TaskExecutor taskExecutor, int numWorker, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, OnHeapHnswGraph hnsw, BitSet initializedNodes) protected
HnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, int graphSize) Reads all the vectors from vector values, builds a graph connecting them by their dense ordinals, using the given hyperparameter settings, and returns the resulting graph.protected
HnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw) protected
HnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, HnswLock hnswLock, HnswGraphSearcher graphSearcher) Reads all the vectors from vector values, builds a graph connecting them by their dense ordinals, using the given hyperparameter settings, and returns the resulting graph.IncrementalHnswGraphMerger
(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth) InitializedHnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph initializedGraph, BitSet initializedNodes)