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 classMethods in org.apache.lucene.codecs.bitvectors that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionFlatBitVectorsScorer.BitRandomVectorScorerSupplier.copy()FlatBitVectorsScorer.getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues) -
Uses of RandomVectorScorerSupplier in org.apache.lucene.codecs.hnsw
Classes in org.apache.lucene.codecs.hnsw that implement RandomVectorScorerSupplierModifier and TypeClassDescriptionprivate static final classRandomVectorScorerSupplier for bytes vectorprivate static final classRandomVectorScorerSupplier for Float vectorstatic classQuantized 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, RandomAccessVectorValues vectorValues) FlatVectorsScorer.getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues) Returns aRandomVectorScorerSupplierthat can be used to score vectorsScalarQuantizedVectorScorer.getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues 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 classprivate static final class(package private) static final classFields in org.apache.lucene.codecs.lucene99 declared as RandomVectorScorerSupplierModifier and TypeFieldDescriptionprivate final RandomVectorScorerSupplierLucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier.supplierprivate final RandomVectorScorerSupplierLucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier.supplierMethods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionLucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier.copy()Lucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier.copy()Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues) Methods in org.apache.lucene.codecs.lucene99 with parameters of type RandomVectorScorerSupplierModifier and TypeMethodDescriptionprivate HnswGraphMergerLucene99HnswVectorsWriter.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 TypeInterfaceDescriptioninterfaceA supplier that createsRandomVectorScorerfrom an ordinal.Fields in org.apache.lucene.util.hnsw declared as RandomVectorScorerSupplierModifier and TypeFieldDescriptionprivate final RandomVectorScorerSupplierHnswGraphBuilder.scorerSupplierprotected final RandomVectorScorerSupplierIncrementalHnswGraphMerger.scorerSupplierMethods 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 TypeMethodDescriptionvoidNeighborArray.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 HnswGraphBuilderHnswGraphBuilder.create(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed) static HnswGraphBuilderHnswGraphBuilder.create(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, int graphSize) private intNeighborArray.findWorstNonDiverse(int nodeOrd, RandomVectorScorerSupplier scorerSupplier) Find first non-diverse neighbour among the list of neighbors starting from the most distant neighboursstatic InitializedHnswGraphBuilderInitializedHnswGraphBuilder.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 booleanNeighborArray.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) privateConcurrentMergeWorker(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, BitSet initializedNodes, AtomicInteger workProgress) HnswConcurrentMergeBuilder(TaskExecutor taskExecutor, int numWorker, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, OnHeapHnswGraph hnsw, BitSet initializedNodes) protectedHnswGraphBuilder(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.protectedHnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw) protectedHnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, 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)