类 DeleteTimeSeriesProcedure
- java.lang.Object
-
- org.apache.iotdb.confignode.procedure.Procedure<Env>
-
- org.apache.iotdb.confignode.procedure.impl.statemachine.StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>
-
- org.apache.iotdb.confignode.procedure.impl.schema.DeleteTimeSeriesProcedure
-
- 所有已实现的接口:
java.lang.Comparable<Procedure<ConfigNodeProcedureEnv>>
public class DeleteTimeSeriesProcedure extends StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.apache.iotdb.confignode.procedure.impl.statemachine.StateMachineProcedure
StateMachineProcedure.Flow
-
-
字段概要
-
从类继承的字段 org.apache.iotdb.confignode.procedure.impl.statemachine.StateMachineProcedure
stateCount
-
从类继承的字段 org.apache.iotdb.confignode.procedure.Procedure
NO_PROC_ID, NO_TIMEOUT
-
-
构造器概要
构造器 构造器 说明 DeleteTimeSeriesProcedure()DeleteTimeSeriesProcedure(java.lang.String queryId, org.apache.iotdb.commons.path.PathPatternTree patternTree)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddeserialize(java.nio.ByteBuffer byteBuffer)booleanequals(java.lang.Object o)protected StateMachineProcedure.FlowexecuteFromState(ConfigNodeProcedureEnv env, DeleteTimeSeriesState state)called to perform a single step of the specified 'state' of the procedureprotected DeleteTimeSeriesStategetInitialState()Return the initial state object that will be used for the first call to executeFromState().org.apache.iotdb.commons.path.PathPatternTreegetPatternTree()java.lang.StringgetQueryId()protected DeleteTimeSeriesStategetState(int stateId)Convert an ordinal (or state id) to an Enum (or more descriptive) state object.protected intgetStateId(DeleteTimeSeriesState deleteTimeSeriesState)Convert the Enum (or more descriptive) state object to an ordinal (or state id).inthashCode()protected booleanisRollbackSupported(DeleteTimeSeriesState deleteTimeSeriesState)Used by the default implementation of abort() to know if the current state can be aborted and rollback can be triggered.protected voidrollbackState(ConfigNodeProcedureEnv env, DeleteTimeSeriesState deleteTimeSeriesState)called to perform the rollback of the specified statevoidserialize(java.io.DataOutputStream stream)voidsetPatternTree(org.apache.iotdb.commons.path.PathPatternTree patternTree)-
从类继承的方法 org.apache.iotdb.confignode.procedure.impl.statemachine.StateMachineProcedure
abort, addChildProcedure, execute, failIfAborted, getCurrentState, getCurrentStateId, getCycles, isEofState, isYieldAfterExecution, isYieldBeforeExecuteFromState, rollback, setNextState, toStringState
-
从类继承的方法 org.apache.iotdb.confignode.procedure.Procedure
acquireLock, addStackIndex, afterRecover, beforeRecover, compareTo, completionCleanup, deserializeTypeInfo, doAcquireLock, doExecute, doReleaseLock, doRollback, elapsedTime, getChildrenLatch, getException, getLastUpdate, getParentProcId, getProcId, getProcName, getResult, getRootProcedureId, getRootProcId, getStackIndexes, getState, getSubmittedTime, getTimeout, getTimeoutTimestamp, hasChildren, hasException, hasLock, hasParent, hasTimeout, haveSameParent, holdLock, incChildrenLatch, isFailed, isFinished, isInitializing, isLockedWhenLoading, isRunnable, isSuccess, isWaiting, needPersistance, newInstance, releaseLock, removeStackIndex, resetPersistance, restoreLock, setAbortFailure, setChildrenLatch, setFailure, setFailure, setLastUpdate, setParentProcId, setProcId, setProcRunnable, setResult, setRootProcedureId, setRootProcId, setStackIndexes, setState, setSubmittedTime, setTimeout, setTimeoutFailure, skipPersistance, toString, toStringClass, toStringClassDetails, toStringDetails, toStringSimpleSB, updateTimestamp, waitInitialized, wasExecuted
-
-
-
-
方法详细资料
-
executeFromState
protected StateMachineProcedure.Flow executeFromState(ConfigNodeProcedureEnv env, DeleteTimeSeriesState state) throws ProcedureSuspendedException, ProcedureYieldException, java.lang.InterruptedException
从类复制的说明:StateMachineProcedurecalled to perform a single step of the specified 'state' of the procedure- 指定者:
executeFromState在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>state- state to execute- 返回:
- Flow.NO_MORE_STATE if the procedure is completed, Flow.HAS_MORE_STATE if there is another step.
- 抛出:
ProcedureSuspendedExceptionProcedureYieldExceptionjava.lang.InterruptedException
-
rollbackState
protected void rollbackState(ConfigNodeProcedureEnv env, DeleteTimeSeriesState deleteTimeSeriesState) throws java.io.IOException, java.lang.InterruptedException, ProcedureException
从类复制的说明:StateMachineProcedurecalled to perform the rollback of the specified state- 指定者:
rollbackState在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>deleteTimeSeriesState- state to rollback- 抛出:
java.io.IOException- temporary failure, the rollback will retry laterjava.lang.InterruptedExceptionProcedureException
-
isRollbackSupported
protected boolean isRollbackSupported(DeleteTimeSeriesState deleteTimeSeriesState)
从类复制的说明:StateMachineProcedureUsed by the default implementation of abort() to know if the current state can be aborted and rollback can be triggered.
-
getState
protected DeleteTimeSeriesState getState(int stateId)
从类复制的说明:StateMachineProcedureConvert an ordinal (or state id) to an Enum (or more descriptive) state object.- 指定者:
getState在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>- 参数:
stateId- the ordinal() of the state enum (or state id)- 返回:
- the state enum object
-
getStateId
protected int getStateId(DeleteTimeSeriesState deleteTimeSeriesState)
从类复制的说明:StateMachineProcedureConvert the Enum (or more descriptive) state object to an ordinal (or state id).- 指定者:
getStateId在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>- 参数:
deleteTimeSeriesState- the state enum object- 返回:
- stateId the ordinal() of the state enum (or state id)
-
getInitialState
protected DeleteTimeSeriesState getInitialState()
从类复制的说明:StateMachineProcedureReturn the initial state object that will be used for the first call to executeFromState().- 指定者:
getInitialState在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>- 返回:
- the initial state enum object
-
getQueryId
public java.lang.String getQueryId()
-
getPatternTree
public org.apache.iotdb.commons.path.PathPatternTree getPatternTree()
-
setPatternTree
public void setPatternTree(org.apache.iotdb.commons.path.PathPatternTree patternTree)
-
serialize
public void serialize(java.io.DataOutputStream stream) throws java.io.IOException- 覆盖:
serialize在类中StateMachineProcedure<ConfigNodeProcedureEnv,DeleteTimeSeriesState>- 抛出:
java.io.IOException
-
deserialize
public void deserialize(java.nio.ByteBuffer byteBuffer)
-
equals
public boolean equals(java.lang.Object o)
- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
-