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
ConstructorsConstructorDescriptionAggregatorCollector(Aggregator[] aggregators, BucketCollector bucketCollector) -
Method Summary
Modifier and TypeMethodDescriptionvoidrun post-collection phaseorg.apache.lucene.search.LeafCollectorgetLeafCollector(org.apache.lucene.index.LeafReaderContext context) org.apache.lucene.search.ScoreModetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getLeafCollectorin interfaceorg.apache.lucene.search.Collector- Throws:
IOException
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()- Specified by:
scoreModein interfaceorg.apache.lucene.search.Collector
-
doPostCollection
Description copied from interface:TwoPhaseCollectorrun post-collection phase- Specified by:
doPostCollectionin interfaceTwoPhaseCollector- Throws:
IOException
-
toString
-