Module org.elasticsearch.server
Class AggregatorCollector
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,TwoPhaseCollector
Collector that controls the life cycle of an aggregation document collection.
-
Constructor Summary
ConstructorDescriptionAggregatorCollector
(Aggregator[] aggregators, BucketCollector bucketCollector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
run post-collection phaseorg.apache.lucene.search.LeafCollector
getLeafCollector
(org.apache.lucene.index.LeafReaderContext context) org.apache.lucene.search.ScoreMode
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.lucene.search.Collector
setWeight
-
Constructor Details
-
AggregatorCollector
-
-
Method Details
-
getLeafCollector
public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
getLeafCollector
in interfaceorg.apache.lucene.search.Collector
- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()- Specified by:
scoreMode
in interfaceorg.apache.lucene.search.Collector
-
doPostCollection
Description copied from interface:TwoPhaseCollector
run post-collection phase- Specified by:
doPostCollection
in interfaceTwoPhaseCollector
- Throws:
IOException
-
toString
-