Uses of Class
org.apache.lucene.util.hnsw.OnHeapHnswGraph
-
Packages that use OnHeapHnswGraph Package Description org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer. -
-
Uses of OnHeapHnswGraph in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as OnHeapHnswGraph Modifier and Type Field Description protected OnHeapHnswGraphHnswGraphBuilder. hnswMethods in org.apache.lucene.util.hnsw that return OnHeapHnswGraph Modifier and Type Method Description OnHeapHnswGraphHnswBuilder. build(int maxOrd)Adds all nodes to the graph up to the providedmaxOrd.OnHeapHnswGraphHnswConcurrentMergeBuilder. build(int maxOrd)OnHeapHnswGraphHnswGraphBuilder. build(int maxOrd)OnHeapHnswGraphHnswBuilder. getCompletedGraph()Once this method is called no further updates to the graph are accepted (addGraphNode will throw IllegalStateException).OnHeapHnswGraphHnswConcurrentMergeBuilder. getCompletedGraph()OnHeapHnswGraphHnswGraphBuilder. getCompletedGraph()OnHeapHnswGraphHnswBuilder. getGraph()OnHeapHnswGraphHnswConcurrentMergeBuilder. getGraph()OnHeapHnswGraphHnswGraphBuilder. getGraph()static OnHeapHnswGraphInitializedHnswGraphBuilder. initGraph(int M, HnswGraph initializerGraph, int[] newOrdMap, int totalNumberOfVectors)OnHeapHnswGraphHnswGraphMerger. merge(DocIdSetIterator mergedVectorIterator, InfoStream infoStream, int maxOrd)Merge and produce the on heap graphOnHeapHnswGraphIncrementalHnswGraphMerger. merge(DocIdSetIterator mergedVectorIterator, InfoStream infoStream, int maxOrd)Methods in org.apache.lucene.util.hnsw with parameters of type OnHeapHnswGraph Modifier and Type Method Description static KnnCollectorHnswGraphSearcher. search(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit)SearchOnHeapHnswGraph, this method is thread safe.Constructors in org.apache.lucene.util.hnsw with parameters of type OnHeapHnswGraph Constructor Description HnswConcurrentMergeBuilder(TaskExecutor taskExecutor, int numWorker, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, OnHeapHnswGraph hnsw, BitSet initializedNodes)HnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw)HnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, org.apache.lucene.util.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.InitializedHnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph initializedGraph, BitSet initializedNodes)
-