Class SmoothQueueSlidingWindowAggregator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.aggregation.Aggregator
-
- org.apache.iotdb.db.mpp.aggregation.slidingwindow.SlidingWindowAggregator
-
- org.apache.iotdb.db.mpp.aggregation.slidingwindow.SmoothQueueSlidingWindowAggregator
-
public class SmoothQueueSlidingWindowAggregator extends SlidingWindowAggregator
The aggregation result is calculated from all pre-aggregation results in the currently maintained queue when calculating the COUNT, SUM, and AVG.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.iotdb.db.mpp.aggregation.slidingwindow.SlidingWindowAggregator
SlidingWindowAggregator.PartialAggregationResult
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.mpp.aggregation.slidingwindow.SlidingWindowAggregator
deque
-
Fields inherited from class org.apache.iotdb.db.mpp.aggregation.Aggregator
accumulator, curTimeRange, inputLocationList, step
-
-
Constructor Summary
Constructors Constructor Description SmoothQueueSlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidevictingExpiredValue()evicting expired element in queue and reset expired aggregateResultvoidprocessPartialResult(SlidingWindowAggregator.PartialAggregationResult partialResult)update queue and aggregateResult-
Methods inherited from class org.apache.iotdb.db.mpp.aggregation.slidingwindow.SlidingWindowAggregator
processTsBlock, updateTimeRange
-
Methods inherited from class org.apache.iotdb.db.mpp.aggregation.Aggregator
getCurTimeRange, getOutputType, hasFinalResult, outputResult, processStatistics, processTsBlocks, reset
-
-
-
-
Constructor Detail
-
SmoothQueueSlidingWindowAggregator
public SmoothQueueSlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step)
-
-
Method Detail
-
evictingExpiredValue
protected void evictingExpiredValue()
Description copied from class:SlidingWindowAggregatorevicting expired element in queue and reset expired aggregateResult- Specified by:
evictingExpiredValuein classSlidingWindowAggregator
-
processPartialResult
public void processPartialResult(SlidingWindowAggregator.PartialAggregationResult partialResult)
Description copied from class:SlidingWindowAggregatorupdate queue and aggregateResult- Specified by:
processPartialResultin classSlidingWindowAggregator
-
-