Class LocalGroupByExecutor
- java.lang.Object
-
- org.apache.iotdb.db.query.executor.groupby.impl.LocalGroupByExecutor
-
- All Implemented Interfaces:
GroupByExecutor
public class LocalGroupByExecutor extends java.lang.Object implements GroupByExecutor
-
-
Constructor Summary
Constructors Constructor Description LocalGroupByExecutor(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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAggregateResult(AggregateResult aggrResult)add reusable result cache in executorjava.util.List<AggregateResult>calcResult(long curStartTime, long curEndTime)calculate result in [curStartTime, curEndTime)booleanisEmpty()org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,java.lang.Object>peekNextNotNullValue(long nextStartTime, long nextEndTime)
-
-
-
Constructor Detail
-
LocalGroupByExecutor
public LocalGroupByExecutor(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
-
-
Method Detail
-
isEmpty
public boolean isEmpty() throws java.io.IOException- Throws:
java.io.IOException
-
addAggregateResult
public void addAggregateResult(AggregateResult aggrResult)
Description copied from interface:GroupByExecutoradd reusable result cache in executor- Specified by:
addAggregateResultin interfaceGroupByExecutor
-
calcResult
public java.util.List<AggregateResult> calcResult(long curStartTime, long curEndTime) throws java.io.IOException, QueryProcessException
Description copied from interface:GroupByExecutorcalculate result in [curStartTime, curEndTime)- Specified by:
calcResultin interfaceGroupByExecutor- Throws:
java.io.IOExceptionQueryProcessException
-
peekNextNotNullValue
public org.apache.iotdb.tsfile.utils.Pair<java.lang.Long,java.lang.Object> peekNextNotNullValue(long nextStartTime, long nextEndTime) throws java.io.IOException- Specified by:
peekNextNotNullValuein interfaceGroupByExecutor- Throws:
java.io.IOException
-
-