Class HnswLock

java.lang.Object
org.apache.lucene.util.hnsw.HnswLock

final class HnswLock extends Object
Provide (read-and-write) striped locks for access to nodes of an OnHeapHnswGraph. For use by HnswConcurrentMergeBuilder and its HnswGraphBuilders.
  • Field Details

  • Constructor Details

    • HnswLock

      HnswLock()
  • Method Details

    • read

      Lock read(int level, int node)
    • write

      Lock write(int level, int node)
    • hash

      private static int hash(int v1, int v2)