Class NormalQueueSlidingWindowAggregator
- 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.NormalQueueSlidingWindowAggregator
-
public class NormalQueueSlidingWindowAggregator extends SlidingWindowAggregator
When calculating MIN_TIME and FIRST_VALUE (MAX_TIME and LAST_VALUE in descending order), the aggregated result always appears at the head of the queue. We need to cache all 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 NormalQueueSlidingWindowAggregator(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
-
NormalQueueSlidingWindowAggregator
public NormalQueueSlidingWindowAggregator(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
-
-