Class LastQueryExecutor
- java.lang.Object
-
- org.apache.iotdb.db.query.executor.LastQueryExecutor
-
public class LastQueryExecutor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.iotdb.tsfile.read.expression.IExpressionexpression
-
Constructor Summary
Constructors Constructor Description LastQueryExecutor(java.util.List<org.apache.iotdb.commons.path.PartialPath> selectedSeries, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)LastQueryExecutor(LastQueryPlan lastQueryPlan)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<org.apache.iotdb.tsfile.read.TimeValuePair>calculateLastPairForSeries(java.util.List<org.apache.iotdb.commons.path.PartialPath> seriesPaths, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes, QueryContext context, org.apache.iotdb.tsfile.read.expression.IExpression expression, RawDataQueryPlan lastQueryPlan)static java.util.List<org.apache.iotdb.tsfile.read.TimeValuePair>calculateLastPairForSeriesLocally(java.util.List<org.apache.iotdb.commons.path.PartialPath> seriesPaths, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes, QueryContext context, org.apache.iotdb.tsfile.read.expression.IExpression expression, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> deviceMeasurementsMap)static voidclear()org.apache.iotdb.tsfile.read.query.dataset.QueryDataSetexecute(QueryContext context, LastQueryPlan lastQueryPlan)execute last function
-
-
-
Constructor Detail
-
LastQueryExecutor
public LastQueryExecutor(LastQueryPlan lastQueryPlan)
-
LastQueryExecutor
public LastQueryExecutor(java.util.List<org.apache.iotdb.commons.path.PartialPath> selectedSeries, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes)
-
-
Method Detail
-
execute
public org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet execute(QueryContext context, LastQueryPlan lastQueryPlan) throws StorageEngineException, java.io.IOException, QueryProcessException
execute last function- Parameters:
context- query context- Throws:
StorageEngineExceptionjava.io.IOExceptionQueryProcessException
-
calculateLastPairForSeries
protected java.util.List<org.apache.iotdb.tsfile.read.TimeValuePair> calculateLastPairForSeries(java.util.List<org.apache.iotdb.commons.path.PartialPath> seriesPaths, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes, QueryContext context, org.apache.iotdb.tsfile.read.expression.IExpression expression, RawDataQueryPlan lastQueryPlan) throws QueryProcessException, StorageEngineException, java.io.IOException- Throws:
QueryProcessExceptionStorageEngineExceptionjava.io.IOException
-
calculateLastPairForSeriesLocally
public static java.util.List<org.apache.iotdb.tsfile.read.TimeValuePair> calculateLastPairForSeriesLocally(java.util.List<org.apache.iotdb.commons.path.PartialPath> seriesPaths, java.util.List<org.apache.iotdb.tsfile.file.metadata.enums.TSDataType> dataTypes, QueryContext context, org.apache.iotdb.tsfile.read.expression.IExpression expression, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> deviceMeasurementsMap) throws QueryProcessException, StorageEngineException, java.io.IOException- Throws:
QueryProcessExceptionStorageEngineExceptionjava.io.IOException
-
clear
public static void clear()
-
-