Enum FragmentState
- java.lang.Object
-
- java.lang.Enum<FragmentState>
-
- org.apache.iotdb.db.mpp.execution.fragment.FragmentState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FragmentState>
public enum FragmentState extends java.lang.Enum<FragmentState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDFragment was aborted due to a failure in the query.FAILEDFragment execution failed.FINISHEDFragment has finished executing and all output has been consumed.PENDINGFragment has finished executing existing tasks but more instances could be scheduled in the future.PLANNEDFragment is planned but has not been scheduled yet.RUNNINGFragment is running.SCHEDULINGFragment instances are being scheduled on nodes.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Set<FragmentState>TERMINAL_FRAGMENT_STATES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDone()Is this a terminal state.booleanisFailure()Is this a non-success terminal state.static FragmentStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FragmentState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLANNED
public static final FragmentState PLANNED
Fragment is planned but has not been scheduled yet. A Fragment will be in the planned state until, the dependencies of the Fragment have begun producing output.
-
SCHEDULING
public static final FragmentState SCHEDULING
Fragment instances are being scheduled on nodes.
-
RUNNING
public static final FragmentState RUNNING
Fragment is running.
-
PENDING
public static final FragmentState PENDING
Fragment has finished executing existing tasks but more instances could be scheduled in the future.
-
FINISHED
public static final FragmentState FINISHED
Fragment has finished executing and all output has been consumed.
-
ABORTED
public static final FragmentState ABORTED
Fragment was aborted due to a failure in the query. The failure was not in this Fragment.
-
FAILED
public static final FragmentState FAILED
Fragment execution failed.
-
-
Field Detail
-
TERMINAL_FRAGMENT_STATES
public static final java.util.Set<FragmentState> TERMINAL_FRAGMENT_STATES
-
-
Method Detail
-
values
public static FragmentState[] 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 (FragmentState c : FragmentState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FragmentState 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.
-
isFailure
public boolean isFailure()
Is this a non-success terminal state.
-
-