Uses of Class
org.apache.lucene.util.hnsw.NeighborArray
Packages that use NeighborArray
Package
Description
Lucene 9.9 file format.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of NeighborArray in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 with parameters of type NeighborArrayModifier and TypeMethodDescriptionprivate voidLucene99HnswVectorsWriter.reconstructAndWriteNeighbours(NeighborArray neighbors, int[] oldToNewMap, int maxOrd) -
Uses of NeighborArray in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as NeighborArrayModifier and TypeFieldDescriptionprivate NeighborArrayHnswGraphSearcher.OnHeapHnswGraphSearcher.curprivate NeighborArrayOnHeapHnswGraph.curprivate NeighborArray[][]OnHeapHnswGraph.graphMethods in org.apache.lucene.util.hnsw that return NeighborArrayModifier and TypeMethodDescriptionOnHeapHnswGraph.getNeighbors(int level, int node) Returns theNeighborQueueconnected to the given node.Methods in org.apache.lucene.util.hnsw with parameters of type NeighborArrayModifier and TypeMethodDescriptionprivate voidHnswGraphBuilder.addDiverseNeighbors(int level, int node, NeighborArray candidates) private booleanHnswGraphBuilder.diversityCheck(int candidate, float score, NeighborArray neighbors) private static voidHnswGraphBuilder.popToScratch(HnswGraphBuilder.GraphBuilderKnnCollector candidates, NeighborArray scratch) private boolean[]HnswGraphBuilder.selectAndLinkDiverse(NeighborArray neighbors, NeighborArray candidates, int maxConnOnLevel) This method will select neighbors to add and return a mask telling the caller which candidates are selected