Package org.apache.lucene.search
Class TimeLimitingKnnCollectorManager
java.lang.Object
org.apache.lucene.search.TimeLimitingKnnCollectorManager
- All Implemented Interfaces:
KnnCollectorManager
A
KnnCollectorManager
that collects results with a timeout.-
Constructor Summary
ConstructorsConstructorDescriptionTimeLimitingKnnCollectorManager
(KnnCollectorManager delegate, QueryTimeout timeout) -
Method Summary
Modifier and TypeMethodDescriptionGet the configuredQueryTimeout
for terminating graph and exact searches.newCollector
(int visitedLimit, LeafReaderContext context) Return a newKnnCollector
instance.
-
Constructor Details
-
TimeLimitingKnnCollectorManager
-
-
Method Details
-
getQueryTimeout
Get the configuredQueryTimeout
for terminating graph and exact searches. -
newCollector
Description copied from interface:KnnCollectorManager
Return a newKnnCollector
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
-