Package io.trino.execution
Enum Class QueryState
- All Implemented Interfaces:
Serializable,Comparable<QueryState>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery is being dispatched to a coordinator.Query execution failed.Query has finished executing and all output has been consumed.Query is finishing (e.g.Query is being planned.Query has been accepted and is awaiting execution.Query has at least one running task.Query execution is being started.Query is waiting for the required resources (beta). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDone()Is this a terminal state.static QueryStateReturns the enum constant of this class with the specified name.static QueryState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUEUED
Query has been accepted and is awaiting execution. -
WAITING_FOR_RESOURCES
Query is waiting for the required resources (beta). -
DISPATCHING
Query is being dispatched to a coordinator. -
PLANNING
Query is being planned. -
STARTING
Query execution is being started. -
RUNNING
Query has at least one running task. -
FINISHING
Query is finishing (e.g. commit for autocommit queries) -
FINISHED
Query has finished executing and all output has been consumed. -
FAILED
Query execution failed.
-
-
Field Details
-
TERMINAL_QUERY_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.
-