Class HnswGraphSearcher.OnHeapHnswGraphSearcher

java.lang.Object
org.apache.lucene.util.hnsw.HnswGraphSearcher
org.apache.lucene.util.hnsw.HnswGraphSearcher.OnHeapHnswGraphSearcher
Enclosing class:
HnswGraphSearcher

private static class HnswGraphSearcher.OnHeapHnswGraphSearcher extends HnswGraphSearcher
This class allows OnHeapHnswGraph to be searched in a thread-safe manner by avoiding the unsafe methods (seek and nextNeighbor, which maintain state in the graph object) and instead maintaining the state in the searcher object.

Note the class itself is NOT thread safe, but since each search will create a new Searcher, the search methods using this class are thread safe.