Class MonotonicQueueSlidingWindowAggregator
- 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.MonotonicQueueSlidingWindowAggregator
-
public class MonotonicQueueSlidingWindowAggregator extends SlidingWindowAggregator
When computing MAX_VALUE, MIN_VALUE, EXTREME, we only add partial aggregation results that maintain monotonicity to queue. The aggregation result always appears at the head of 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 MonotonicQueueSlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step, java.util.Comparator<org.apache.iotdb.tsfile.read.common.block.column.Column> comparator)
-
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
-
MonotonicQueueSlidingWindowAggregator
public MonotonicQueueSlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step, java.util.Comparator<org.apache.iotdb.tsfile.read.common.block.column.Column> comparator)
-
-
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
-
-