HnswConcurrentMergeBuilder
class HnswConcurrentMergeBuilder(taskExecutor: TaskExecutor, numWorker: Int, scorerSupplier: RandomVectorScorerSupplier, beamWidth: Int, hnsw: OnHeapHnswGraph, initializedNodes: BitSet?) : HnswBuilder
A graph builder that manages multiple workers, it only supports adding the whole graph all at once. It will spawn a thread for each worker and the workers will pick the work in batches.
Constructors
Link copied to clipboard
constructor(taskExecutor: TaskExecutor, numWorker: Int, scorerSupplier: RandomVectorScorerSupplier, beamWidth: Int, hnsw: OnHeapHnswGraph, initializedNodes: BitSet?)