MultiLeafKnnCollector

constructor(k: Int, greediness: Float, interval: Int, globalSimilarityQueue: BlockingFloatHeap, subCollector: AbstractKnnCollector)


constructor(k: Int, globalSimilarityQueue: BlockingFloatHeap, subCollector: AbstractKnnCollector)

Create a new MultiLeafKnnCollector.

Parameters

k

the number of neighbors to collect

globalSimilarityQueue

the global queue of the highest similarities collected so far across all segments

subCollector

the local collector