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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewCollector(int visitedLimit, KnnSearchStrategy searchStrategy, LeafReaderContext context) Return a newTopKnnCollectorinstance.
-
Constructor Details
-
TopKnnCollectorManager
-
-
Method Details
-
newCollector
public KnnCollector newCollector(int visitedLimit, KnnSearchStrategy searchStrategy, LeafReaderContext context) throws IOException Return a newTopKnnCollectorinstance.- Specified by:
newCollectorin interfaceKnnCollectorManager- Parameters:
visitedLimit- the maximum number of nodes that the search is allowed to visitsearchStrategy- the optional search strategy configurationcontext- the leaf reader context- Throws:
IOException
-