@Override
  protected void evictingExpiredValue() {
    if (!deque.isEmpty() && !curTimeRange.contains(deque.getLast().getTime())) {
      this.accumulator.reset();
      deque.clear();
      return;
    }
    while (!deque.isEmpty() && !curTimeRange.contains(deque.getFirst().getTime())) {
      PartialAggregationResult partialResult = deque.removeFirst();
      this.accumulator.removeIntermediate(partialResult.getPartialResult());
    }
  }
The aggregation result is calculated from all pre-aggregation results in the currently maintained
queue when calculating the COUNT, SUM, AVG and STDDEV/VARIANCE relevant functions.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/aggregation/slidingwindow/SmoothQueueSlidingWindowAggregator.java