Enum FragmentInstanceState
- java.lang.Object
-
- java.lang.Enum<FragmentInstanceState>
-
- org.apache.iotdb.db.mpp.execution.fragment.FragmentInstanceState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FragmentInstanceState>
public enum FragmentInstanceState extends java.lang.Enum<FragmentInstanceState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDInstance was aborted due to a failure in the query.CANCELLEDInstance was canceled by a user.FAILEDInstance execution failed.FINISHEDInstance has finished executing and all output has been consumed.FLUSHINGInstance has finished executing and output is left to be consumed.NO_SUCH_INSTANCEInstance is not found.PLANNEDInstance is planned but has not been scheduled yet.RUNNINGInstance is running.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<FragmentInstanceState>FAILURE_INSTANCE_STATESstatic java.util.Set<FragmentInstanceState>TERMINAL_INSTANCE_STATES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDone()Is this a terminal state.booleanisFailed()static FragmentInstanceStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FragmentInstanceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLANNED
public static final FragmentInstanceState PLANNED
Instance is planned but has not been scheduled yet. An instance will be in the planned state until, the dependencies of the instance have begun producing output.
-
RUNNING
public static final FragmentInstanceState RUNNING
Instance is running.
-
FLUSHING
public static final FragmentInstanceState FLUSHING
Instance has finished executing and output is left to be consumed. In this state, there will be no new drivers, the existing drivers have finished and the output buffer of the instance is at-least in a 'no-more-tsBlocks' state.
-
FINISHED
public static final FragmentInstanceState FINISHED
Instance has finished executing and all output has been consumed.
-
CANCELLED
public static final FragmentInstanceState CANCELLED
Instance was canceled by a user.
-
ABORTED
public static final FragmentInstanceState ABORTED
Instance was aborted due to a failure in the query. The failure was not in this instance.
-
FAILED
public static final FragmentInstanceState FAILED
Instance execution failed.
-
NO_SUCH_INSTANCE
public static final FragmentInstanceState NO_SUCH_INSTANCE
Instance is not found.
-
-
Field Detail
-
TERMINAL_INSTANCE_STATES
public static final java.util.Set<FragmentInstanceState> TERMINAL_INSTANCE_STATES
-
FAILURE_INSTANCE_STATES
public static final java.util.Set<FragmentInstanceState> FAILURE_INSTANCE_STATES
-
-
Method Detail
-
values
public static FragmentInstanceState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FragmentInstanceState c : FragmentInstanceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FragmentInstanceState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isDone
public boolean isDone()
Is this a terminal state.
-
isFailed
public boolean isFailed()
-
-