Package io.trino.execution
Enum Class TaskState
- All Implemented Interfaces:
Serializable,Comparable<TaskState>,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 told to abort, but not all drivers have finishing exitingTask was canceled by a user.Task was canceled, but not all drivers have finishing exitingTask execution failed.Task has been marked as failed, but not all drivers have finishing exitingTask 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. -
CANCELING
Task was canceled, but not all drivers have finishing exiting -
CANCELED
Task was canceled by a user. -
ABORTING
Task was told to abort, but not all drivers have finishing exiting -
ABORTED
Task was aborted due to a failure in the query. The failure was not in this task. -
FAILING
Task has been marked as failed, but not all drivers have finishing exiting -
FAILED
Task execution failed.
-
-
Field Details
-
TERMINAL_TASK_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. -
isTerminating
public boolean isTerminating() -
isTerminatingOrDone
public boolean isTerminatingOrDone()
-