Package org.apache.iotdb.db.engine.cq
Class ContinuousQueryTask
- java.lang.Object
-
- org.apache.iotdb.commons.concurrent.WrappedRunnable
-
- org.apache.iotdb.db.engine.cq.ContinuousQueryTask
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
ContinuousQuerySchemaCheckTask
public class ContinuousQueryTask extends org.apache.iotdb.commons.concurrent.WrappedRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected CreateContinuousQueryPlancontinuousQueryPlanprotected static intEXECUTION_BATCH_SIZEprotected static org.slf4j.LoggerLOGGERprotected static java.util.regex.PatternPATH_NODE_NAME_PATTERNprotected ServiceProviderserviceProviderprotected longwindowEndTimestamp
-
Constructor Summary
Constructors Constructor Description ContinuousQueryTask(CreateContinuousQueryPlan continuousQueryPlan, long windowEndTimestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInsert(java.lang.String sql, QueryOperator queryOperator, GroupByTimePlan queryPlan, org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet queryDataSet)protected java.lang.StringfillTargetPathTemplate(org.apache.iotdb.commons.path.PartialPath rawPath)protected java.lang.StringgenerateSQL()protected java.util.List<org.apache.iotdb.commons.path.PartialPath>generateTargetPaths(java.util.List<org.apache.iotdb.tsfile.read.common.Path> rawPaths)voidonRejection()voidrunMayThrow()
-
-
-
Field Detail
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
PATH_NODE_NAME_PATTERN
protected static final java.util.regex.Pattern PATH_NODE_NAME_PATTERN
-
EXECUTION_BATCH_SIZE
protected static final int EXECUTION_BATCH_SIZE
- See Also:
- Constant Field Values
-
serviceProvider
protected final ServiceProvider serviceProvider
-
continuousQueryPlan
protected final CreateContinuousQueryPlan continuousQueryPlan
-
windowEndTimestamp
protected final long windowEndTimestamp
-
-
Constructor Detail
-
ContinuousQueryTask
public ContinuousQueryTask(CreateContinuousQueryPlan continuousQueryPlan, long windowEndTimestamp)
-
-
Method Detail
-
runMayThrow
public void runMayThrow() throws QueryProcessException, StorageEngineException, java.io.IOException, java.lang.InterruptedException, org.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationException, org.apache.iotdb.commons.exception.MetadataException, org.apache.thrift.TException, java.sql.SQLException- Specified by:
runMayThrowin classorg.apache.iotdb.commons.concurrent.WrappedRunnable- Throws:
QueryProcessExceptionStorageEngineExceptionjava.io.IOExceptionjava.lang.InterruptedExceptionorg.apache.iotdb.tsfile.exception.filter.QueryFilterOptimizationExceptionorg.apache.iotdb.commons.exception.MetadataExceptionorg.apache.thrift.TExceptionjava.sql.SQLException
-
generateSQL
protected java.lang.String generateSQL()
-
doInsert
protected void doInsert(java.lang.String sql, QueryOperator queryOperator, GroupByTimePlan queryPlan, org.apache.iotdb.tsfile.read.query.dataset.QueryDataSet queryDataSet) throws org.apache.iotdb.commons.exception.MetadataException, QueryProcessException, StorageEngineException, java.io.IOException- Throws:
org.apache.iotdb.commons.exception.MetadataExceptionQueryProcessExceptionStorageEngineExceptionjava.io.IOException
-
generateTargetPaths
protected java.util.List<org.apache.iotdb.commons.path.PartialPath> generateTargetPaths(java.util.List<org.apache.iotdb.tsfile.read.common.Path> rawPaths) throws org.apache.iotdb.commons.exception.IllegalPathException- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
fillTargetPathTemplate
protected java.lang.String fillTargetPathTemplate(org.apache.iotdb.commons.path.PartialPath rawPath) throws org.apache.iotdb.commons.exception.IllegalPathException- Throws:
org.apache.iotdb.commons.exception.IllegalPathException
-
onRejection
public void onRejection()
-
-