Package io.trino.execution
Enum Class StageState
- All Implemented Interfaces:
Serializable,Comparable<StageState>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStage was aborted due to a failure in the query.Stage execution failed.Stage has finished executing and all output has been consumed.Stage has finished executing existing tasks but more tasks could be scheduled in the future.Stage is planned but has not been scheduled yet.Stage is running.Stage tasks are being scheduled on nodes. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDone()Is this a terminal state.booleanIs this a non-success terminal state.booleanIs this a scheduled statestatic StageStateReturns the enum constant of this class with the specified name.static StageState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
Stage tasks are being scheduled on nodes. -
RUNNING
Stage is running. -
PENDING
Stage has finished executing existing tasks but more tasks could be scheduled in the future. -
FINISHED
Stage has finished executing and all output has been consumed. -
ABORTED
Stage was aborted due to a failure in the query. The failure was not in this stage. -
FAILED
Stage execution failed.
-
-
Field Details
-
TERMINAL_STAGE_STATES
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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. -
isScheduled
public boolean isScheduled()Is this a scheduled state
-