Class AggregationExecutionContext

java.lang.Object
org.elasticsearch.search.aggregations.AggregationExecutionContext

public class AggregationExecutionContext extends Object
Used to preserve contextual information during aggregation execution. It can be used by search executors and parent aggregations to provide contextual information for the child aggregation during execution such as the currently executed time series id or the size of the current date histogram bucket. The information provided by this class is highly contextual and only valid during the LeafBucketCollector.collect(int, long) call.
  • Constructor Details

    • AggregationExecutionContext

      public AggregationExecutionContext(org.apache.lucene.index.LeafReaderContext leafReaderContext, Supplier<org.apache.lucene.util.BytesRef> tsidProvider, LongSupplier timestampProvider, IntSupplier tsidOrdProvider)
  • Method Details

    • getLeafReaderContext

      public org.apache.lucene.index.LeafReaderContext getLeafReaderContext()
    • getTsid

      public org.apache.lucene.util.BytesRef getTsid()
    • getTimestamp

      public long getTimestamp()
    • getTsidOrd

      public int getTsidOrd()