Package io.trino.execution
Enum TaskState
- All Implemented Interfaces:
Serializable,Comparable<TaskState>,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTask was aborted due to a failure in the query.Task was canceled by a user.Task execution failed.Task has finished executing and all output has been consumed.Task has finished executing and output is left to be consumed.Task is planned but has not been scheduled yet.Task is running. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
PLANNED
Task is planned but has not been scheduled yet. A task will be in the planned state until, the dependencies of the task have begun producing output. -
RUNNING
Task is running. -
FLUSHING
Task 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 task is at-least in a 'no-more-pages' state. -
FINISHED
Task has finished executing and all output has been consumed. -
CANCELED
Task was canceled by a user. -
ABORTED
Task was aborted due to a failure in the query. The failure was not in this task. -
FAILED
Task execution failed.
-
-
Field Details
-
TERMINAL_TASK_STATES
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.
-