Uses of Class
org.apache.lucene.util.hnsw.OnHeapHnswGraph
Packages that use OnHeapHnswGraph
Package
Description
Analysis components for Synonyms using Word2Vec model.
Lucene 9.9 file format.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of OnHeapHnswGraph in org.apache.lucene.analysis.synonym.word2vec
Fields in org.apache.lucene.analysis.synonym.word2vec declared as OnHeapHnswGraph -
Uses of OnHeapHnswGraph in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 that return OnHeapHnswGraphModifier and TypeMethodDescription(package private) OnHeapHnswGraphLucene99HnswVectorsWriter.FieldWriter.getGraph()Methods in org.apache.lucene.codecs.lucene99 with parameters of type OnHeapHnswGraphModifier and TypeMethodDescriptionprivate HnswGraphLucene99HnswVectorsWriter.reconstructAndWriteGraph(OnHeapHnswGraph graph, int[] newToOldMap, int[] oldToNewMap, int[][] levelNodeOffsets) Reconstructs the graph given the old and new node ids.private int[][]Lucene99HnswVectorsWriter.writeGraph(OnHeapHnswGraph graph) -
Uses of OnHeapHnswGraph in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as OnHeapHnswGraphMethods in org.apache.lucene.util.hnsw that return OnHeapHnswGraphModifier and TypeMethodDescriptionHnswBuilder.build(int maxOrd) Adds all nodes to the graph up to the providedmaxOrd.HnswConcurrentMergeBuilder.build(int maxOrd) HnswGraphBuilder.build(int maxOrd) HnswBuilder.getGraph()HnswConcurrentMergeBuilder.getGraph()HnswGraphBuilder.getGraph()static OnHeapHnswGraphInitializedHnswGraphBuilder.initGraph(int M, HnswGraph initializerGraph, int[] newOrdMap, int totalNumberOfVectors) HnswGraphMerger.merge(DocIdSetIterator mergedVectorIterator, InfoStream infoStream, int maxOrd) Merge and produce the on heap graphIncrementalHnswGraphMerger.merge(DocIdSetIterator mergedVectorIterator, InfoStream infoStream, int maxOrd) Methods in org.apache.lucene.util.hnsw with parameters of type OnHeapHnswGraphModifier and TypeMethodDescriptionstatic 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 OnHeapHnswGraphModifierConstructorDescriptionprivateConcurrentMergeWorker(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, 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.InitializedHnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph initializedGraph, BitSet initializedNodes)