Class GroupByWithoutValueFilterDataSet
- 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.GroupByWithoutValueFilterDataSet
-
public class GroupByWithoutValueFilterDataSet extends GroupByTimeEngineDataSet
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<AlignedPath,AlignedGroupByExecutor>alignedPathExecutorsprotected java.util.Map<AlignedPath,java.util.List<java.util.List<java.lang.Integer>>>alignedPathToAggrIndexesMapaligned path -> result indexes for each aggregationprotected java.util.Map<org.apache.iotdb.commons.path.PartialPath,GroupByExecutor>pathExecutorsprotected java.util.Map<org.apache.iotdb.commons.path.PartialPath,java.util.List<java.lang.Integer>>pathToAggrIndexesMapnon-aligned path -> result index for each aggregation-
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 Constructor Description GroupByWithoutValueFilterDataSet()GroupByWithoutValueFilterDataSet(QueryContext context, GroupByTimePlan groupByTimePlan)constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AlignedGroupByExecutorgetAlignedGroupByExecutor(org.apache.iotdb.commons.path.PartialPath path, QueryContext context, org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter, TsFileFilter fileFilter, boolean ascending)protected GroupByExecutorgetGroupByExecutor(org.apache.iotdb.commons.path.PartialPath path, java.util.Set<java.lang.String> allSensors, QueryContext context, org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter, TsFileFilter fileFilter, boolean ascending)protected AggregateResult[]getNextAggregateResult()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
-
pathExecutors
protected java.util.Map<org.apache.iotdb.commons.path.PartialPath,GroupByExecutor> pathExecutors
-
alignedPathExecutors
protected java.util.Map<AlignedPath,AlignedGroupByExecutor> alignedPathExecutors
-
pathToAggrIndexesMap
protected java.util.Map<org.apache.iotdb.commons.path.PartialPath,java.util.List<java.lang.Integer>> pathToAggrIndexesMap
non-aligned path -> result index for each aggregatione.g.,
deduplicated paths: s1, s2, s1; deduplicated aggregations: count, count, sum
s1 -> 0, 2; s2 -> 1
-
alignedPathToAggrIndexesMap
protected java.util.Map<AlignedPath,java.util.List<java.util.List<java.lang.Integer>>> alignedPathToAggrIndexesMap
aligned path -> result indexes for each aggregatione.g.,
deduplicated paths: d1.s1, d1.s2, d1.s1; deduplicated aggregations: count, count, sum
d1[s1, s2] -> [[0, 2], [1]]
-
-
Constructor Detail
-
GroupByWithoutValueFilterDataSet
public GroupByWithoutValueFilterDataSet()
-
GroupByWithoutValueFilterDataSet
public GroupByWithoutValueFilterDataSet(QueryContext context, GroupByTimePlan groupByTimePlan)
constructor.
-
-
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
-
getNextAggregateResult
protected AggregateResult[] getNextAggregateResult() throws java.io.IOException
- Specified by:
getNextAggregateResultin classGroupByTimeEngineDataSet- Throws:
java.io.IOException
-
getGroupByExecutor
protected GroupByExecutor getGroupByExecutor(org.apache.iotdb.commons.path.PartialPath path, java.util.Set<java.lang.String> allSensors, QueryContext context, org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter, TsFileFilter fileFilter, boolean ascending) throws StorageEngineException, QueryProcessException
-
getAlignedGroupByExecutor
protected AlignedGroupByExecutor getAlignedGroupByExecutor(org.apache.iotdb.commons.path.PartialPath path, QueryContext context, org.apache.iotdb.tsfile.read.filter.basic.Filter timeFilter, TsFileFilter fileFilter, boolean ascending) throws StorageEngineException, QueryProcessException
-
-