类 CQInfo

  • 所有已实现的接口:
    org.apache.iotdb.commons.snapshot.SnapshotProcessor

    @ThreadSafe
    public class CQInfo
    extends java.lang.Object
    implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
    • 构造器详细资料

      • CQInfo

        public CQInfo()
    • 方法详细资料

      • addCQ

        public org.apache.iotdb.common.rpc.thrift.TSStatus addCQ​(AddCQPlan plan)
        Add a new CQ only if there was no mapping for this cqId, otherwise ignore this operation.
        返回:
        SUCCESS_STATUS if there was no mapping for this cqId, otherwise CQ_AlREADY_EXIST
      • dropCQ

        public org.apache.iotdb.common.rpc.thrift.TSStatus dropCQ​(DropCQPlan plan)
        Drop the CQ whose ID is same as cqId in plan.
        返回:
        SUCCESS_STATUS if there is CQ whose ID and md5 is same as cqId in plan, otherwise NO_SUCH_CQ.
      • activeCQ

        public org.apache.iotdb.common.rpc.thrift.TSStatus activeCQ​(ActiveCQPlan plan)
        Change the state of cq to ACTIVE.
        返回:
        Optional.empty() if there is no such cq, otherwise previous state of this cq.
      • updateCQLastExecutionTime

        public org.apache.iotdb.common.rpc.thrift.TSStatus updateCQLastExecutionTime​(UpdateCQLastExecTimePlan plan)
        Update the last execution time of the corresponding CQ.
        返回:
        SUCCESS_STATUS if successfully updated, or NO_SUCH_CQ if 1. the CQ doesn't exist; or 2. md5 is different. or CQ_UPDATE_LAST_EXEC_TIME_FAILED 3. original lastExecutionTime >= current lastExecutionTime;
      • processTakeSnapshot

        public boolean processTakeSnapshot​(java.io.File snapshotDir)
                                    throws org.apache.thrift.TException,
                                           java.io.IOException
        指定者:
        processTakeSnapshot 在接口中 org.apache.iotdb.commons.snapshot.SnapshotProcessor
        抛出:
        org.apache.thrift.TException
        java.io.IOException
      • processLoadSnapshot

        public void processLoadSnapshot​(java.io.File snapshotDir)
                                 throws org.apache.thrift.TException,
                                        java.io.IOException
        指定者:
        processLoadSnapshot 在接口中 org.apache.iotdb.commons.snapshot.SnapshotProcessor
        抛出:
        org.apache.thrift.TException
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        覆盖:
        equals 在类中 java.lang.Object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 java.lang.Object