Class EmptyQueueSlidingWindowGroupByExecutor
- java.lang.Object
-
- org.apache.iotdb.db.query.executor.groupby.SlidingWindowGroupByExecutor
-
- org.apache.iotdb.db.query.executor.groupby.impl.EmptyQueueSlidingWindowGroupByExecutor
-
public class EmptyQueueSlidingWindowGroupByExecutor extends SlidingWindowGroupByExecutor
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.
-
-
Field Summary
-
Fields inherited from class org.apache.iotdb.db.query.executor.groupby.SlidingWindowGroupByExecutor
aggregateResult, curEndTime, curStartTime, deque
-
-
Constructor Summary
Constructors Constructor Description EmptyQueueSlidingWindowGroupByExecutor(org.apache.iotdb.tsfile.file.metadata.enums.TSDataType dataType, java.lang.String aggrFuncName, 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
-
-