Class EmptyQueueSlidingWindowAggregator
- 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.EmptyQueueSlidingWindowAggregator
-
public class EmptyQueueSlidingWindowAggregator extends SlidingWindowAggregator
When calculating MAX_TIME and LAST_VALUE (the MIN_TIME and FIRST_VALUE in descending order), the aggregation result always appears in the most recent pre-aggregation result. So, we do not need to cache the previous pre-aggregated results in the queue.
-
-
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 EmptyQueueSlidingWindowAggregator(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
-
EmptyQueueSlidingWindowAggregator
public EmptyQueueSlidingWindowAggregator(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
-
-