Uses of Class
org.apache.lucene.util.hnsw.NeighborArray
Packages that use NeighborArray
Package
Description
Lucene 9.5 file format.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of NeighborArray in org.apache.lucene.codecs.lucene95
Methods in org.apache.lucene.codecs.lucene95 with parameters of type NeighborArrayModifier and TypeMethodDescriptionprivate voidLucene95HnswVectorsWriter.reconstructAndWriteNeigbours(NeighborArray neighbors, int[] oldToNewMap, int maxConnOnLevel, int maxOrd) -
Uses of NeighborArray in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as NeighborArrayModifier and TypeFieldDescriptionprivate NeighborArrayOnHeapHnswGraph.curprivate final NeighborArrayHnswGraphBuilder.scratchFields in org.apache.lucene.util.hnsw with type parameters of type NeighborArrayMethods 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 booleanHnswGraphBuilder.diversityCheck(int candidate, float score, NeighborArray neighbors) private intHnswGraphBuilder.findWorstNonDiverse(NeighborArray neighbors) Find first non-diverse neighbour among the list of neighbors starting from the most distant neighboursprivate booleanHnswGraphBuilder.isDiverse(byte[] candidate, NeighborArray neighbors, float score) private booleanHnswGraphBuilder.isDiverse(float[] candidate, NeighborArray neighbors, float score) private booleanHnswGraphBuilder.isDiverse(int candidate, NeighborArray neighbors, float score) private booleanHnswGraphBuilder.isWorstNonDiverse(int candidateIndex, byte[] candidateVector, NeighborArray neighbors) private booleanHnswGraphBuilder.isWorstNonDiverse(int candidateIndex, float[] candidateVector, NeighborArray neighbors) private booleanHnswGraphBuilder.isWorstNonDiverse(int candidateIndex, NeighborArray neighbors) private voidHnswGraphBuilder.selectAndLinkDiverse(NeighborArray neighbors, NeighborArray candidates, int maxConnOnLevel)