java.lang.Object
org.apache.lucene.util.hnsw.HnswLock
Provide (read-and-write) locked access to rows of an OnHeapHnswGraph. For use by
HnswConcurrentMerger and its HnswGraphBuilders.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OnHeapHnswGraph
private final ReentrantReadWriteLock[]
private static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) HnswLock.LockedRow
read
(int level, int node) (package private) HnswLock.LockedRow
write
(int level, int node)
-
Field Details
-
NUM_LOCKS
private static final int NUM_LOCKS- See Also:
-
locks
-
graph
-
-
Constructor Details
-
HnswLock
HnswLock(OnHeapHnswGraph graph)
-
-
Method Details
-
read
-
write
-