Class SmoothQueueSlidingWindowGroupByExecutor
- java.lang.Object
-
- org.apache.iotdb.db.query.executor.groupby.SlidingWindowGroupByExecutor
-
- org.apache.iotdb.db.query.executor.groupby.impl.SmoothQueueSlidingWindowGroupByExecutor
-
public class SmoothQueueSlidingWindowGroupByExecutor extends SlidingWindowGroupByExecutor
The aggregation result is calculated from all pre-aggregation results in the currently maintained queue when calculating the COUNT, SUM, and AVG. We implement by executingAggregateResult.merge(AggregateResult)when adding to queue andRemovableAggregateResult.remove(AggregateResult)when removing from queue.
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.query.executor.groupby.SlidingWindowGroupByExecutor
aggregateResult, curEndTime, curStartTime, deque
-
-
Constructor Summary
Constructors Constructor Description SmoothQueueSlidingWindowGroupByExecutor(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, java.lang.String string, boolean ascending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidevictingExpiredValue()evicting expired element in queue and reset expired aggregateResultvoidupdate(AggregateResult aggregateResult)update queue and aggregateResult-
Methods inherited from class org.apache.iotdb.db.query.executor.groupby.SlidingWindowGroupByExecutor
getAggregateResult, inTimeRange, setTimeRange
-
-
-
-
Method Detail
-
update
public void update(AggregateResult aggregateResult)
Description copied from class:SlidingWindowGroupByExecutorupdate queue and aggregateResult- Specified by:
updatein classSlidingWindowGroupByExecutor
-
evictingExpiredValue
protected void evictingExpiredValue()
Description copied from class:SlidingWindowGroupByExecutorevicting expired element in queue and reset expired aggregateResult- Specified by:
evictingExpiredValuein classSlidingWindowGroupByExecutor
-
-