Class ConcurrentHnswMerger

java.lang.Object
org.apache.lucene.util.hnsw.IncrementalHnswGraphMerger
org.apache.lucene.util.hnsw.ConcurrentHnswMerger
All Implemented Interfaces:
HnswGraphMerger

public class ConcurrentHnswMerger extends IncrementalHnswGraphMerger
This merger merges graph in a concurrent manner, by using HnswConcurrentMergeBuilder
  • Constructor Details

    • ConcurrentHnswMerger

      public ConcurrentHnswMerger(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, TaskExecutor taskExecutor, int numWorker)
      Parameters:
      fieldInfo - FieldInfo for the field being merged
    • ConcurrentHnswMerger

      public ConcurrentHnswMerger(FieldInfo fieldInfo, RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, TaskExecutor taskExecutor, int numWorker, IORunnable abortCheck)
      Parameters:
      fieldInfo - FieldInfo for the field being merged
      abortCheck - optional check invoked before every node insertion during graph construction; may throw MergePolicy.MergeAbortedException to abort the build when the surrounding merge has been aborted, or null
  • Method Details