Package io.trino.execution.scheduler
Enum PipelinedStageExecution.State
- java.lang.Object
-
- java.lang.Enum<PipelinedStageExecution.State>
-
- io.trino.execution.scheduler.PipelinedStageExecution.State
-
- All Implemented Interfaces:
Serializable,Comparable<PipelinedStageExecution.State>
- Enclosing class:
- PipelinedStageExecution
public static enum PipelinedStageExecution.State extends Enum<PipelinedStageExecution.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDStage was aborted due to a failure in the query.CANCELEDStage was canceled by a user.FAILEDStage execution failed.FINISHEDStage has finished executing and all output has been consumed.FLUSHINGStage has finished executing and output being consumed.PLANNEDStage is planned but has not been scheduled yet.RUNNINGStage is running.SCHEDULEDStage has been scheduled on nodes and ready to execute, but all tasks are still queued.SCHEDULINGStage tasks are being scheduled on nodes.SCHEDULING_SPLITSAll stage tasks have been scheduled, but splits are still being scheduled.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanScheduleMoreTasks()booleanisDone()Is this a terminal state.booleanisFailure()Is this a non-success terminal state.static PipelinedStageExecution.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static PipelinedStageExecution.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLANNED
public static final PipelinedStageExecution.State 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 PipelinedStageExecution.State SCHEDULING
Stage tasks are being scheduled on nodes.
-
SCHEDULING_SPLITS
public static final PipelinedStageExecution.State SCHEDULING_SPLITS
All stage tasks have been scheduled, but splits are still being scheduled.
-
SCHEDULED
public static final PipelinedStageExecution.State SCHEDULED
Stage has been scheduled on nodes and ready to execute, but all tasks are still queued.
-
RUNNING
public static final PipelinedStageExecution.State RUNNING
Stage is running.
-
FLUSHING
public static final PipelinedStageExecution.State FLUSHING
Stage has finished executing and output being consumed. In this state, at-least one of the tasks is flushing and the non-flushing tasks are finished
-
FINISHED
public static final PipelinedStageExecution.State FINISHED
Stage has finished executing and all output has been consumed.
-
CANCELED
public static final PipelinedStageExecution.State CANCELED
Stage was canceled by a user.
-
ABORTED
public static final PipelinedStageExecution.State ABORTED
Stage was aborted due to a failure in the query. The failure was not in this stage.
-
FAILED
public static final PipelinedStageExecution.State FAILED
Stage execution failed.
-
-
Method Detail
-
values
public static PipelinedStageExecution.State[] 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 (PipelinedStageExecution.State c : PipelinedStageExecution.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PipelinedStageExecution.State 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.
-
canScheduleMoreTasks
public boolean canScheduleMoreTasks()
-
-