Class GlobalAggCollectorManagerWithSingleCollector
java.lang.Object
org.opensearch.search.aggregations.AggregationCollectorManager
org.opensearch.search.aggregations.GlobalAggCollectorManagerWithSingleCollector
- All Implemented Interfaces:
org.apache.lucene.search.CollectorManager<org.apache.lucene.search.Collector,
ReduceableSearchResult>
CollectorManager
to take care of global aggregation operators in case of non-concurrent segment search. This CollectorManager
returns the same collector instance (i.e. created in constructor of super class) on each newCollector call-
Field Summary
Fields inherited from class org.opensearch.search.aggregations.AggregationCollectorManager
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Collector
reduce
(Collection<org.apache.lucene.search.Collector> collectors) Methods inherited from class org.opensearch.search.aggregations.AggregationCollectorManager
buildAggregationResult, getCollectorReason
-
Constructor Details
-
GlobalAggCollectorManagerWithSingleCollector
- Throws:
IOException
-
-
Method Details
-
newCollector
- Specified by:
newCollector
in interfaceorg.apache.lucene.search.CollectorManager<org.apache.lucene.search.Collector,
ReduceableSearchResult> - Overrides:
newCollector
in classAggregationCollectorManager
- Throws:
IOException
-
reduce
public ReduceableSearchResult reduce(Collection<org.apache.lucene.search.Collector> collectors) throws IOException - Specified by:
reduce
in interfaceorg.apache.lucene.search.CollectorManager<org.apache.lucene.search.Collector,
ReduceableSearchResult> - Overrides:
reduce
in classAggregationCollectorManager
- Throws:
IOException
-
getCollectorName
- Specified by:
getCollectorName
in classAggregationCollectorManager
-