Module org.elasticsearch.compute
Class TimeSeriesAggregationOperator
java.lang.Object
org.elasticsearch.compute.operator.HashAggregationOperator
org.elasticsearch.compute.operator.TimeSeriesAggregationOperator
- All Implemented Interfaces:
Closeable,AutoCloseable,Operator,org.elasticsearch.core.Releasable
A specialized version of
HashAggregationOperator that aggregates time-series aggregations from time-series sources.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.elasticsearch.compute.operator.HashAggregationOperator
HashAggregationOperator.HashAggregationOperatorFactory, HashAggregationOperator.StatusNested classes/interfaces inherited from interface org.elasticsearch.compute.operator.Operator
Operator.OperatorFactory -
Field Summary
Fields inherited from class org.elasticsearch.compute.operator.HashAggregationOperator
aggregators, driverContext, emitNanosFields inherited from interface org.elasticsearch.compute.operator.Operator
MIN_TARGET_PAGE_SIZE, NOT_BLOCKED, TARGET_PAGE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionTimeSeriesAggregationOperator(Rounding.Prepared timeBucket, DateFieldMapper.Resolution timeResolution, List<GroupingAggregator.Factory> aggregators, Supplier<BlockHash> blockHash, DriverContext driverContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()notifies the operator that it won't be used anymore (i.e.protected voidevaluateAggregator(GroupingAggregator aggregator, Block[] blocks, int offset, IntVector selected, GroupingAggregatorEvaluationContext evaluationContext) protected GroupingAggregatorEvaluationContextevaluationContext(BlockHash blockHash, Block[] keys) voidfinish()notifies the operator that it won't receive any more input pagesMethods inherited from class org.elasticsearch.compute.operator.HashAggregationOperator
addInput, checkState, getOutput, isFinished, needsInput, status, toString, wrapPage
-
Constructor Details
-
TimeSeriesAggregationOperator
public TimeSeriesAggregationOperator(Rounding.Prepared timeBucket, DateFieldMapper.Resolution timeResolution, List<GroupingAggregator.Factory> aggregators, Supplier<BlockHash> blockHash, DriverContext driverContext)
-
-
Method Details
-
finish
public void finish()Description copied from interface:Operatornotifies the operator that it won't receive any more input pages- Specified by:
finishin interfaceOperator- Overrides:
finishin classHashAggregationOperator
-
evaluateAggregator
protected void evaluateAggregator(GroupingAggregator aggregator, Block[] blocks, int offset, IntVector selected, GroupingAggregatorEvaluationContext evaluationContext) - Overrides:
evaluateAggregatorin classHashAggregationOperator
-
evaluationContext
- Overrides:
evaluationContextin classHashAggregationOperator
-
close
public void close()Description copied from interface:Operatornotifies the operator that it won't be used anymore (i.e. none of the other methods called), and its resources can be cleaned up- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceOperator- Specified by:
closein interfaceorg.elasticsearch.core.Releasable- Overrides:
closein classHashAggregationOperator
-