java.lang.Object
org.apache.lucene.search.knn.TopKnnCollectorManager
- All Implemented Interfaces:
KnnCollectorManager
TopKnnCollectorManager responsible for creating
TopKnnCollector
instances. When
concurrency is supported, the BlockingFloatHeap
is used to track the global top scores
collected across all leaves.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewCollector
(int visitedLimit, LeafReaderContext context) Return a newTopKnnCollector
instance.
-
Field Details
-
k
private final int k -
globalScoreQueue
-
-
Constructor Details
-
TopKnnCollectorManager
-
-
Method Details
-
newCollector
Return a newTopKnnCollector
instance.- Specified by:
newCollector
in interfaceKnnCollectorManager
- Parameters:
visitedLimit
- the maximum number of nodes that the search is allowed to visitcontext
- the leaf reader context- Throws:
IOException
-