Package org.apache.lucene.search.knn
Interface KnnCollectorManager
- All Known Implementing Classes:
TimeLimitingKnnCollectorManager,TopKnnCollectorManager
public interface KnnCollectorManager
KnnCollectorManager responsible for creating
KnnCollector instances. Useful to create
KnnCollector instances that share global state across leaves, such a global queue of
results collected so far.-
Method Summary
Modifier and TypeMethodDescriptionnewCollector(int visitedLimit, KnnSearchStrategy searchStrategy, LeafReaderContext context) Return a newKnnCollectorinstance.
-
Method Details
-
newCollector
KnnCollector newCollector(int visitedLimit, KnnSearchStrategy searchStrategy, LeafReaderContext context) throws IOException Return a newKnnCollectorinstance.- 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
-