Package org.apache.lucene.search.knn
Interface KnnCollectorManager
-
- All Known Implementing Classes:
TimeLimitingKnnCollectorManager,TopKnnCollectorManager
public interface KnnCollectorManagerKnnCollectorManager responsible for creatingKnnCollectorinstances. Useful to createKnnCollectorinstances that share global state across leaves, such a global queue of results collected so far.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KnnCollectornewCollector(int visitedLimit, LeafReaderContext context)Return a newKnnCollectorinstance.
-
-
-
Method Detail
-
newCollector
KnnCollector newCollector(int visitedLimit, LeafReaderContext context) throws IOException
Return a newKnnCollectorinstance.- Parameters:
visitedLimit- the maximum number of nodes that the search is allowed to visitcontext- the leaf reader context- Throws:
IOException
-
-