类 CQInfo
- java.lang.Object
-
- org.apache.iotdb.confignode.persistence.cq.CQInfo
-
- 所有已实现的接口:
org.apache.iotdb.commons.snapshot.SnapshotProcessor
@ThreadSafe public class CQInfo extends java.lang.Object implements org.apache.iotdb.commons.snapshot.SnapshotProcessor
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classCQInfo.CQEntry
-
构造器概要
构造器 构造器 说明 CQInfo()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.apache.iotdb.common.rpc.thrift.TSStatusactiveCQ(ActiveCQPlan plan)Change the state of cq to ACTIVE.org.apache.iotdb.common.rpc.thrift.TSStatusaddCQ(AddCQPlan plan)Add a new CQ only if there was no mapping for this cqId, otherwise ignore this operation.org.apache.iotdb.common.rpc.thrift.TSStatusdropCQ(DropCQPlan plan)Drop the CQ whose ID is same as cqId in plan.booleanequals(java.lang.Object o)inthashCode()voidprocessLoadSnapshot(java.io.File snapshotDir)booleanprocessTakeSnapshot(java.io.File snapshotDir)ShowCQRespshowCQ(ShowCQPlan plan)org.apache.iotdb.common.rpc.thrift.TSStatusupdateCQLastExecutionTime(UpdateCQLastExecTimePlan plan)Update the last execution time of the corresponding CQ.
-
-
-
方法详细资料
-
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.
-
showCQ
public ShowCQResp showCQ(ShowCQPlan plan)
-
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.TExceptionjava.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.TExceptionjava.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
-