Class BucketCollector

java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
All Implemented Interfaces:
org.apache.lucene.search.Collector
Direct Known Subclasses:
Aggregator, DeferringBucketCollector, MultiBucketCollector

public abstract class BucketCollector extends Object implements org.apache.lucene.search.Collector
A Collector that can collect data in separate buckets.
  • Field Details

  • Constructor Details

    • BucketCollector

      public BucketCollector()
  • Method Details

    • getLeafCollector

      public abstract LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
      Specified by:
      getLeafCollector in interface org.apache.lucene.search.Collector
      Throws:
      IOException
    • preCollection

      public abstract void preCollection() throws IOException
      Pre collection callback.
      Throws:
      IOException
    • postCollection

      public abstract void postCollection() throws IOException
      Post-collection callback.
      Throws:
      IOException