Class ContinuousQueryTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Direct Known Subclasses:
    ContinuousQuerySchemaCheckTask

    public class ContinuousQueryTask
    extends org.apache.iotdb.commons.concurrent.WrappedRunnable
    • 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
      • 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:
        runMayThrow in class org.apache.iotdb.commons.concurrent.WrappedRunnable
        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
      • generateSQL

        protected java.lang.String generateSQL()
      • 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()