Module org.elasticsearch.compute
Class TimeSeriesGroupingAggregatorEvaluationContext
java.lang.Object
org.elasticsearch.compute.aggregation.GroupingAggregatorEvaluationContext
org.elasticsearch.compute.aggregation.TimeSeriesGroupingAggregatorEvaluationContext
- All Implemented Interfaces:
Closeable,AutoCloseable,Releasable
public abstract class TimeSeriesGroupingAggregatorEvaluationContext
extends GroupingAggregatorEvaluationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the full set of group IDs when output filtering is active.abstract voidComputes and caches the adjacent group IDs.abstract voidforEachGroupInRange(int startingGroupId, long rangeStartMillis, long rangeEndMillis, IntConsumer action) Invokesactionfor each group ID, other thanstartingGroupIditself, whose bucket falls within[rangeStartMillis, rangeEndMillis).abstract intnextGroupId(int currentGroupId) abstract intpreviousGroupId(int currentGroupId) abstract longrangeEndInMillis(int groupId) Returns the exclusive end of the time range, in milliseconds, for the specified group ID.abstract longrangeStartInMillis(int groupId) Returns the inclusive start of the time range, in milliseconds, for the specified group ID.voidsetAllGroupIds(IntVector allGroupIds) Methods inherited from class org.elasticsearch.compute.aggregation.GroupingAggregatorEvaluationContext
blockFactory, close, driverContext
-
Constructor Details
-
TimeSeriesGroupingAggregatorEvaluationContext
-
-
Method Details
-
allGroupIds
Returns the full set of group IDs when output filtering is active. Window aggregations use this to build intermediate states for non-output buckets. -
setAllGroupIds
-
rangeStartInMillis
public abstract long rangeStartInMillis(int groupId) Returns the inclusive start of the time range, in milliseconds, for the specified group ID. -
rangeEndInMillis
public abstract long rangeEndInMillis(int groupId) Returns the exclusive end of the time range, in milliseconds, for the specified group ID. -
forEachGroupInRange
public abstract void forEachGroupInRange(int startingGroupId, long rangeStartMillis, long rangeEndMillis, IntConsumer action) Invokesactionfor each group ID, other thanstartingGroupIditself, whose bucket falls within[rangeStartMillis, rangeEndMillis). -
previousGroupId
public abstract int previousGroupId(int currentGroupId) -
nextGroupId
public abstract int nextGroupId(int currentGroupId) -
computeAdjacentGroupIds
public abstract void computeAdjacentGroupIds()Computes and caches the adjacent group IDs. They will be used in #previousGroupId and #nextGroupId.
-