Interface ITimeRangeIterator
-
- All Known Implementing Classes:
AggrWindowIterator,PreAggrWindowIterator,PreAggrWindowWithNaturalMonthIterator,SingleTimeWindowIterator
public interface ITimeRangeIteratorThis interface used for iteratively generating aggregated time windows in GROUP BY query.It will return a leftCloseRightClose time window, by decreasing maxTime if leftCloseRightOpen and increasing minTime if leftOpenRightClose.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description longcurrentOutputTime()As there is only one timestamp can be output for a time range, this method will return the output time based on leftCloseRightOpen or not.default org.apache.iotdb.tsfile.read.common.TimeRangegetFinalTimeRange(org.apache.iotdb.tsfile.read.common.TimeRange timeRange, boolean leftCRightO)org.apache.iotdb.tsfile.read.common.TimeRangegetFirstTimeRange()return the first time range by sorting orderlonggetTotalIntervalNum()booleanhasNextTimeRange()booleanisAscending()org.apache.iotdb.tsfile.read.common.TimeRangenextTimeRange()return the next time range according to curStartTime (the start time of the last returned time range)
-
-
-
Method Detail
-
getFirstTimeRange
org.apache.iotdb.tsfile.read.common.TimeRange getFirstTimeRange()
return the first time range by sorting order
-
hasNextTimeRange
boolean hasNextTimeRange()
- Returns:
- whether current iterator has next time range
-
nextTimeRange
org.apache.iotdb.tsfile.read.common.TimeRange nextTimeRange()
return the next time range according to curStartTime (the start time of the last returned time range)
-
isAscending
boolean isAscending()
-
getFinalTimeRange
default org.apache.iotdb.tsfile.read.common.TimeRange getFinalTimeRange(org.apache.iotdb.tsfile.read.common.TimeRange timeRange, boolean leftCRightO)
-
currentOutputTime
long currentOutputTime()
As there is only one timestamp can be output for a time range, this method will return the output time based on leftCloseRightOpen or not.- Returns:
- minTime if leftCloseRightOpen, else maxTime.
-
getTotalIntervalNum
long getTotalIntervalNum()
-
-