Package org.opensearch.search.query
Class TotalHitCountCollectorManager
java.lang.Object
org.opensearch.search.query.TotalHitCountCollectorManager
- All Implemented Interfaces:
org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,
,ReduceableSearchResult> EarlyTerminatingListener
public class TotalHitCountCollectorManager
extends Object
implements org.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,ReduceableSearchResult>, EarlyTerminatingListener
CollectorManager for the TotalHitCountCollector
- Opensearch.internal:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.TotalHitCountCollector
void
onEarlyTermination
(int maxCountHits, boolean forcedTermination) Early termination event notificationreduce
(Collection<org.apache.lucene.search.TotalHitCountCollector> collectors)
-
Constructor Details
-
TotalHitCountCollectorManager
public TotalHitCountCollectorManager(org.apache.lucene.search.Sort sort)
-
-
Method Details
-
onEarlyTermination
public void onEarlyTermination(int maxCountHits, boolean forcedTermination) Description copied from interface:EarlyTerminatingListener
Early termination event notification- Specified by:
onEarlyTermination
in interfaceEarlyTerminatingListener
- Parameters:
maxCountHits
- desired maximum number of hitsforcedTermination
- :true" if forced termination has been requested, "false" otherwise
-
newCollector
- Specified by:
newCollector
in interfaceorg.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,
ReduceableSearchResult> - Throws:
IOException
-
reduce
public ReduceableSearchResult reduce(Collection<org.apache.lucene.search.TotalHitCountCollector> collectors) throws IOException - Specified by:
reduce
in interfaceorg.apache.lucene.search.CollectorManager<org.apache.lucene.search.TotalHitCountCollector,
ReduceableSearchResult> - Throws:
IOException
-