public abstract class GroupByEngineDataSet extends QueryDataSet
QueryDataSet.EndPoint| 限定符和类型 | 字段和说明 |
|---|---|
protected AggregateResult[] |
curAggregateResults |
protected long |
curEndTime |
protected long |
curStartTime |
protected long |
endTime |
protected boolean |
hasCachedTimeInterval |
protected long |
interval |
protected boolean |
isIntervalByMonth |
protected boolean |
isSlidingStepByMonth |
protected boolean |
leftCRightO |
static long |
MS_TO_MONTH |
protected long |
queryId |
protected long |
slidingStep |
protected long |
startTime |
alreadyReturnedRowNum, ascending, columnNum, dataTypes, endPoint, fetchSize, paths, rowLimit, rowOffset, withoutAllNull, withoutAnyNull, withoutNullColumnsIndex| 构造器和说明 |
|---|
GroupByEngineDataSet() |
GroupByEngineDataSet(QueryContext context,
GroupByTimePlan groupByTimePlan)
groupBy query.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
calcIntervalByMonth(long startTime,
long numMonths)
add natural months based on the startTime to avoid edge cases, ie 2/28
|
AggregateResult[] |
getCurAggregateResults() |
protected Pair<Long,Long> |
getFirstTimeRange() |
protected Pair<Long,Long> |
getLastTimeRange() |
protected Pair<Long,Long> |
getNextTimeRange(long curStartTime,
boolean isAscending,
boolean isInside) |
long |
getStartTime() |
boolean |
hasNextWithoutConstraint() |
protected void |
initGroupByEngineDataSetFields(QueryContext context,
GroupByTimePlan groupByTimePlan) |
Pair<Long,Long> |
nextTimePartition() |
abstract RowRecord |
nextWithoutConstraint() |
decreaseAlreadyReturnedRowNum, getColumnNum, getDataTypes, getEndPoint, getPaths, getRowLimit, getRowOffset, getWithoutNullColumnsIndex, hasLimit, hasNext, initQueryDataSetFields, isWithoutAllNull, isWithoutAnyNull, next, setColumnNum, setDataTypes, setEndPoint, setFetchSize, setRowLimit, setRowOffset, setWithoutAllNull, setWithoutAnyNull, setWithoutNullColumnsIndex, withoutNullFilterprotected long queryId
protected long interval
protected long slidingStep
protected long startTime
protected long endTime
protected long curStartTime
protected long curEndTime
protected boolean hasCachedTimeInterval
protected boolean leftCRightO
protected boolean isIntervalByMonth
protected boolean isSlidingStepByMonth
public static final long MS_TO_MONTH
protected AggregateResult[] curAggregateResults
public GroupByEngineDataSet()
public GroupByEngineDataSet(QueryContext context, GroupByTimePlan groupByTimePlan)
protected Pair<Long,Long> getNextTimeRange(long curStartTime, boolean isAscending, boolean isInside)
protected void initGroupByEngineDataSetFields(QueryContext context, GroupByTimePlan groupByTimePlan)
public boolean hasNextWithoutConstraint()
hasNextWithoutConstraint 在类中 QueryDataSetpublic static long calcIntervalByMonth(long startTime,
long numMonths)
startTime - current start timenumMonths - numMonths is updated in hasNextWithoutConstraint()public abstract RowRecord nextWithoutConstraint() throws IOException
nextWithoutConstraint 在类中 QueryDataSetIOExceptionpublic long getStartTime()
public AggregateResult[] getCurAggregateResults()
Copyright © 2022 The Apache Software Foundation. All rights reserved.