Class AggregatorCollector

java.lang.Object
org.elasticsearch.search.aggregations.AggregatorCollector
All Implemented Interfaces:
org.apache.lucene.search.Collector, TwoPhaseCollector

public class AggregatorCollector extends Object implements TwoPhaseCollector
Collector that controls the life cycle of an aggregation document collection.
  • Constructor Details

  • Method Details

    • getLeafCollector

      public org.apache.lucene.search.LeafCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      getLeafCollector in interface org.apache.lucene.search.Collector
      Throws:
      IOException
    • scoreMode

      public org.apache.lucene.search.ScoreMode scoreMode()
      Specified by:
      scoreMode in interface org.apache.lucene.search.Collector
    • doPostCollection

      public void doPostCollection() throws IOException
      Description copied from interface: TwoPhaseCollector
      run post-collection phase
      Specified by:
      doPostCollection in interface TwoPhaseCollector
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object