Uses of Class
org.apache.lucene.util.hnsw.NeighborArray
-
Packages that use NeighborArray Package Description org.apache.lucene.codecs.lucene99 Lucene 9.9 file format.org.apache.lucene.util.hnsw 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 NeighborArray Modifier and Type Method Description private void
Lucene99HnswVectorsWriter. 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 NeighborArray Modifier and Type Field Description private NeighborArray
HnswGraphSearcher.OnHeapHnswGraphSearcher. cur
private NeighborArray
OnHeapHnswGraph. cur
private NeighborArray[][]
OnHeapHnswGraph. graph
Methods in org.apache.lucene.util.hnsw that return NeighborArray Modifier and Type Method Description NeighborArray
OnHeapHnswGraph. getNeighbors(int level, int node)
Returns theNeighborQueue
connected to the given node.Methods in org.apache.lucene.util.hnsw with parameters of type NeighborArray Modifier and Type Method Description private void
HnswGraphBuilder. addDiverseNeighbors(int level, int node, NeighborArray candidates)
private boolean
HnswGraphBuilder. diversityCheck(int candidate, float score, NeighborArray neighbors)
private static void
HnswGraphBuilder. 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
-