Uses of Class
org.apache.lucene.util.hnsw.HnswGraph
-
Packages that use HnswGraph Package Description org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.backward_codecs.lucene91 Lucene 9.1 file format.org.apache.lucene.codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer. -
-
Uses of HnswGraph in org.apache.lucene.backward_codecs.lucene90
Subclasses of HnswGraph in org.apache.lucene.backward_codecs.lucene90 Modifier and Type Class Description private static classLucene90HnswVectorsReader.OffHeapHnswGraphRead the nearest-neighbors graph from the index inputclassLucene90OnHeapHnswGraphAnHnswGraphwhere all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene90 that return HnswGraph Modifier and Type Method Description HnswGraphLucene90HnswVectorsReader. getGraphValues(java.lang.String field)Get knn graph values; used for testingprivate HnswGraphLucene90HnswVectorsReader. getGraphValues(Lucene90HnswVectorsReader.FieldEntry entry)Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type HnswGraph Modifier and Type Method Description static NeighborQueueLucene90OnHeapHnswGraph. search(float[] query, int topK, int numSeed, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, int visitedLimit, java.util.SplittableRandom random)Searches for the nearest neighbors of a query vector. -
Uses of HnswGraph in org.apache.lucene.backward_codecs.lucene91
Subclasses of HnswGraph in org.apache.lucene.backward_codecs.lucene91 Modifier and Type Class Description private static classLucene91HnswVectorsReader.OffHeapHnswGraphRead the nearest-neighbors graph from the index inputclassLucene91OnHeapHnswGraphAnHnswGraphwhere all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene91 that return HnswGraph Modifier and Type Method Description HnswGraphLucene91HnswVectorsReader. getGraph(java.lang.String field)Get knn graph values; used for testingprivate HnswGraphLucene91HnswVectorsReader. getGraph(Lucene91HnswVectorsReader.FieldEntry entry) -
Uses of HnswGraph in org.apache.lucene.codecs.lucene92
Subclasses of HnswGraph in org.apache.lucene.codecs.lucene92 Modifier and Type Class Description private static classLucene92HnswVectorsReader.OffHeapHnswGraphRead the nearest-neighbors graph from the index inputMethods in org.apache.lucene.codecs.lucene92 that return HnswGraph Modifier and Type Method Description HnswGraphLucene92HnswVectorsReader. getGraph(java.lang.String field)Get knn graph values; used for testingprivate HnswGraphLucene92HnswVectorsReader. getGraph(Lucene92HnswVectorsReader.FieldEntry entry) -
Uses of HnswGraph in org.apache.lucene.util.hnsw
Subclasses of HnswGraph in org.apache.lucene.util.hnsw Modifier and Type Class Description classOnHeapHnswGraphAnHnswGraphwhere all nodes and connections are held in memory.Fields in org.apache.lucene.util.hnsw declared as HnswGraph Modifier and Type Field Description static HnswGraphHnswGraph. EMPTYEmpty graph valueMethods in org.apache.lucene.util.hnsw with parameters of type HnswGraph Modifier and Type Method Description static NeighborQueueHnswGraphSearcher. search(float[] query, int topK, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit)Searches HNSW graph for the nearest neighbors of a query vector.NeighborQueueHnswGraphSearcher. searchLevel(float[] query, int topK, int level, int[] eps, RandomAccessVectorValues vectors, HnswGraph graph)Searches for the nearest neighbors of a query vector in a given level.private NeighborQueueHnswGraphSearcher. searchLevel(float[] query, int topK, int level, int[] eps, RandomAccessVectorValues vectors, HnswGraph graph, Bits acceptOrds, int visitedLimit)
-