Module org.elasticsearch.server
Class AggregationExecutionContext
java.lang.Object
org.elasticsearch.search.aggregations.AggregationExecutionContext
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 Summary
ConstructorDescriptionAggregationExecutionContext
(org.apache.lucene.index.LeafReaderContext leafReaderContext, Supplier<org.apache.lucene.util.BytesRef> tsidProvider, Supplier<Long> timestampProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.LeafReaderContext
org.apache.lucene.util.BytesRef
getTsid()
-
Constructor Details
-
AggregationExecutionContext
-
-
Method Details
-
getLeafReaderContext
public org.apache.lucene.index.LeafReaderContext getLeafReaderContext() -
getTsid
public org.apache.lucene.util.BytesRef getTsid() -
getTimestamp
-