Class BucketCollector

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

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

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getLeafCollector​(org.apache.lucene.index.LeafReaderContext ctx)
     
    abstract void
    Post-collection callback.
    abstract void
    Pre collection callback.

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from interface org.apache.lucene.search.Collector

    scoreMode
  • Field Details

  • Constructor Details

    • BucketCollector

      public BucketCollector()
  • Method Details

    • getLeafCollector

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

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

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