Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorerSupplier
Packages that use RandomVectorScorerSupplier
Package
Description
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
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.Classes in org.apache.lucene.util.hnsw that implement RandomVectorScorerSupplierModifier and TypeClassDescriptionstatic final class
RandomVectorScorerSupplier for bytes vectorstatic final class
RandomVectorScorerSupplier for Float vectorFields in org.apache.lucene.util.hnsw declared as RandomVectorScorerSupplierModifier and TypeFieldDescriptionprotected final RandomVectorScorerSupplier
IncrementalHnswGraphMerger.scorerSupplier
Methods in org.apache.lucene.util.hnsw that return RandomVectorScorerSupplierModifier and TypeMethodDescriptionRandomVectorScorerSupplier.ByteScoringSupplier.copy()
RandomVectorScorerSupplier.copy()
Make a copy of the supplier, which will copy the underlying vectorValues so the copy is safe to be used in other threads.RandomVectorScorerSupplier.FloatScoringSupplier.copy()
static RandomVectorScorerSupplier
RandomVectorScorerSupplier.createBytes
(RandomAccessVectorValues<byte[]> vectors, VectorSimilarityFunction similarityFunction) Creates aRandomVectorScorerSupplier
to compare byte vectors.static RandomVectorScorerSupplier
RandomVectorScorerSupplier.createFloats
(RandomAccessVectorValues<float[]> vectors, VectorSimilarityFunction similarityFunction) Creates aRandomVectorScorerSupplier
to compare float vectors.Methods in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorerSupplierModifier and TypeMethodDescriptionstatic 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) static 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.Constructors in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorerSupplierModifierConstructorDescriptionConcurrentHnswMerger
(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, TaskExecutor taskExecutor, int numWorker) 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, 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)