Package io.trino.execution
Enum QueryState
- java.lang.Object
-
- java.lang.Enum<QueryState>
-
- io.trino.execution.QueryState
-
- All Implemented Interfaces:
Serializable,Comparable<QueryState>
public enum QueryState extends Enum<QueryState>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISPATCHINGQuery is being dispatched to a coordinator.FAILEDQuery execution failed.FINISHEDQuery has finished executing and all output has been consumed.FINISHINGQuery is finishing (e.g.PLANNINGQuery is being planned.QUEUEDQuery has been accepted and is awaiting execution.RUNNINGQuery has at least one running task.STARTINGQuery execution is being started.WAITING_FOR_RESOURCESQuery is waiting for the required resources (beta).
-
Field Summary
Fields Modifier and Type Field Description static Set<QueryState>TERMINAL_QUERY_STATES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDone()Is this a terminal state.static QueryStatevalueOf(String name)Returns the enum constant of this type with the specified name.static QueryState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUEUED
public static final QueryState QUEUED
Query has been accepted and is awaiting execution.
-
WAITING_FOR_RESOURCES
public static final QueryState WAITING_FOR_RESOURCES
Query is waiting for the required resources (beta).
-
DISPATCHING
public static final QueryState DISPATCHING
Query is being dispatched to a coordinator.
-
PLANNING
public static final QueryState PLANNING
Query is being planned.
-
STARTING
public static final QueryState STARTING
Query execution is being started.
-
RUNNING
public static final QueryState RUNNING
Query has at least one running task.
-
FINISHING
public static final QueryState FINISHING
Query is finishing (e.g. commit for autocommit queries)
-
FINISHED
public static final QueryState FINISHED
Query has finished executing and all output has been consumed.
-
FAILED
public static final QueryState FAILED
Query execution failed.
-
-
Field Detail
-
TERMINAL_QUERY_STATES
public static final Set<QueryState> TERMINAL_QUERY_STATES
-
-
Method Detail
-
values
public static QueryState[] 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 (QueryState c : QueryState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryState 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.
-
-