Package org.apache.lucene.search.knn
Class TopKnnCollectorManager
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.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnewCollector
(int visitedLimit, LeafReaderContext context) Return a newTopKnnCollector
instance.
-
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
-