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, LongSupplier timestampProvider, IntSupplier tsidOrdProvider) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.LeafReaderContext
long
org.apache.lucene.util.BytesRef
getTsid()
int
-
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()
-