Package io.trino.execution
Enum StageState
- java.lang.Object
-
- java.lang.Enum<StageState>
-
- io.trino.execution.StageState
-
- All Implemented Interfaces:
Serializable,Comparable<StageState>
public enum StageState extends Enum<StageState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDStage was aborted due to a failure in the query.FAILEDStage execution failed.FINISHEDStage has finished executing and all output has been consumed.PENDINGStage has finished executing existing tasks but more tasks could be scheduled in the future.PLANNEDStage is planned but has not been scheduled yet.RUNNINGStage is running.SCHEDULINGStage tasks are being scheduled on nodes.
-
Field Summary
Fields Modifier and Type Field Description static Set<StageState>TERMINAL_STAGE_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 StageStatevalueOf(String name)Returns the enum constant of this type with the specified name.static StageState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLANNED
public static final StageState PLANNED
Stage is planned but has not been scheduled yet. A stage will be in the planned state until, the dependencies of the stage have begun producing output.
-
SCHEDULING
public static final StageState SCHEDULING
Stage tasks are being scheduled on nodes.
-
RUNNING
public static final StageState RUNNING
Stage is running.
-
PENDING
public static final StageState PENDING
Stage has finished executing existing tasks but more tasks could be scheduled in the future.
-
FINISHED
public static final StageState FINISHED
Stage has finished executing and all output has been consumed.
-
ABORTED
public static final StageState ABORTED
Stage was aborted due to a failure in the query. The failure was not in this stage.
-
FAILED
public static final StageState FAILED
Stage execution failed.
-
-
Field Detail
-
TERMINAL_STAGE_STATES
public static final Set<StageState> TERMINAL_STAGE_STATES
-
-
Method Detail
-
values
public static StageState[] 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 (StageState c : StageState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StageState valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- 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.
-
-