Class SlidingWindowAggregator
- java.lang.Object
-
- org.apache.iotdb.db.mpp.aggregation.Aggregator
-
- org.apache.iotdb.db.mpp.aggregation.slidingwindow.SlidingWindowAggregator
-
- Direct Known Subclasses:
EmptyQueueSlidingWindowAggregator,MonotonicQueueSlidingWindowAggregator,NormalQueueSlidingWindowAggregator,SmoothQueueSlidingWindowAggregator
public abstract class SlidingWindowAggregator extends Aggregator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSlidingWindowAggregator.PartialAggregationResult
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Deque<SlidingWindowAggregator.PartialAggregationResult>deque-
Fields inherited from class org.apache.iotdb.db.mpp.aggregation.Aggregator
accumulator, curTimeRange, inputLocationList, step
-
-
Constructor Summary
Constructors Constructor Description SlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidevictingExpiredValue()evicting expired element in queue and reset expired aggregateResultabstract voidprocessPartialResult(SlidingWindowAggregator.PartialAggregationResult partialResult)update queue and aggregateResultintprocessTsBlock(org.apache.iotdb.tsfile.read.common.block.TsBlock tsBlock)voidupdateTimeRange(org.apache.iotdb.tsfile.read.common.TimeRange curTimeRange)-
Methods inherited from class org.apache.iotdb.db.mpp.aggregation.Aggregator
getCurTimeRange, getOutputType, hasFinalResult, outputResult, processStatistics, processTsBlocks, reset
-
-
-
-
Field Detail
-
deque
protected java.util.Deque<SlidingWindowAggregator.PartialAggregationResult> deque
-
-
Constructor Detail
-
SlidingWindowAggregator
public SlidingWindowAggregator(Accumulator accumulator, java.util.List<InputLocation[]> inputLocationList, AggregationStep step)
-
-
Method Detail
-
processTsBlock
public int processTsBlock(org.apache.iotdb.tsfile.read.common.block.TsBlock tsBlock)
- Overrides:
processTsBlockin classAggregator
-
updateTimeRange
public void updateTimeRange(org.apache.iotdb.tsfile.read.common.TimeRange curTimeRange)
- Overrides:
updateTimeRangein classAggregator
-
evictingExpiredValue
protected abstract void evictingExpiredValue()
evicting expired element in queue and reset expired aggregateResult
-
processPartialResult
public abstract void processPartialResult(SlidingWindowAggregator.PartialAggregationResult partialResult)
update queue and aggregateResult
-
-