java.lang.Object
org.apache.lucene.util.hnsw.HnswLock
Provide (read-and-write) striped locks for access to nodes of an
OnHeapHnswGraph
. For use
by HnswConcurrentMergeBuilder
and its HnswGraphBuilders.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NUM_LOCKS
private static final int NUM_LOCKS- See Also:
-
locks
-
-
Constructor Details
-
HnswLock
HnswLock()
-
-
Method Details
-
read
-
write
-
hash
private static int hash(int v1, int v2)
-