Class GroupByWithValueFilterDataSet
- java.lang.Object
-
- org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
-
- org.apache.iotdb.db.query.dataset.groupby.GroupByTimeDataSet
-
- org.apache.iotdb.db.query.dataset.groupby.GroupByTimeEngineDataSet
-
- org.apache.iotdb.db.query.dataset.groupby.GroupByWithValueFilterDataSet
-
public class GroupByWithValueFilterDataSet extends GroupByTimeEngineDataSet
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupByTimePlangroupByTimePlanprotected inttimeStampFetchSizegroup by batch calculation size.-
Fields inherited from class org.apache.iotdb.db.query.dataset.groupby.GroupByTimeDataSet
curAggregateResults, curAggrTimeRange, curPreAggrTimeRange, endTime, hasCachedTimeInterval, interval, isIntervalByMonth, isSlidingStepByMonth, leftCRightO, queryId, slidingStep, slidingWindowGroupByExecutors, startTime
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupByWithValueFilterDataSet()GroupByWithValueFilterDataSet(long queryId, GroupByTimePlan groupByTimePlan)GroupByWithValueFilterDataSet(QueryContext context, GroupByTimePlan groupByTimePlan)constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregateResult[]calcResult(long curStartTime, long curEndTime)protected AggregateResult[]getNextAggregateResult()protected IReaderByTimestampgetReaderByTime(org.apache.iotdb.commons.path.PartialPath path, RawDataQueryPlan queryPlan, QueryContext context)protected org.apache.iotdb.tsfile.read.query.timegenerator.TimeGeneratorgetTimeGenerator(QueryContext context, RawDataQueryPlan queryPlan)voidinitGroupBy(QueryContext context, GroupByTimePlan groupByTimePlan)init reader and aggregate function.-
Methods inherited from class org.apache.iotdb.db.query.dataset.groupby.GroupByTimeEngineDataSet
constructRowRecord, getCurAggregateResults, isEndCal, nextWithoutConstraint, updatePreAggrInterval
-
Methods inherited from class org.apache.iotdb.db.query.dataset.groupby.GroupByTimeDataSet
getStartTime, hasNextWithoutConstraint, initGroupByTimeDataSetFields, nextTimePartition
-
Methods inherited from class org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet
decreaseAlreadyReturnedRowNum, getColumnNum, getDataTypes, getEndPoint, getPaths, getRowLimit, getRowOffset, getWithoutNullColumnsIndex, hasLimit, hasNext, initQueryDataSetFields, isWithoutAllNull, isWithoutAnyNull, next, setColumnNum, setDataTypes, setEndPoint, setFetchSize, setRowLimit, setRowOffset, setWithoutAllNull, setWithoutAnyNull, setWithoutNullColumnsIndex, withoutNullFilter
-
-
-
-
Field Detail
-
groupByTimePlan
protected GroupByTimePlan groupByTimePlan
-
timeStampFetchSize
protected int timeStampFetchSize
group by batch calculation size.
-
-
Constructor Detail
-
GroupByWithValueFilterDataSet
protected GroupByWithValueFilterDataSet()
-
GroupByWithValueFilterDataSet
public GroupByWithValueFilterDataSet(QueryContext context, GroupByTimePlan groupByTimePlan)
constructor.
-
GroupByWithValueFilterDataSet
public GroupByWithValueFilterDataSet(long queryId, GroupByTimePlan groupByTimePlan)
-
-
Method Detail
-
initGroupBy
public void initGroupBy(QueryContext context, GroupByTimePlan groupByTimePlan) throws StorageEngineException, QueryProcessException
init reader and aggregate function. This method should be called once after initializing
-
getTimeGenerator
protected org.apache.iotdb.tsfile.read.query.timegenerator.TimeGenerator getTimeGenerator(QueryContext context, RawDataQueryPlan queryPlan) throws StorageEngineException
- Throws:
StorageEngineException
-
getReaderByTime
protected IReaderByTimestamp getReaderByTime(org.apache.iotdb.commons.path.PartialPath path, RawDataQueryPlan queryPlan, QueryContext context) throws StorageEngineException, QueryProcessException
-
getNextAggregateResult
protected AggregateResult[] getNextAggregateResult() throws java.io.IOException
- Specified by:
getNextAggregateResultin classGroupByTimeEngineDataSet- Throws:
java.io.IOException
-
calcResult
public AggregateResult[] calcResult(long curStartTime, long curEndTime) throws java.io.IOException
- Throws:
java.io.IOException
-
-