Enum Class QueryState

java.lang.Object
java.lang.Enum<QueryState>
io.trino.execution.QueryState
All Implemented Interfaces:
Serializable, Comparable<QueryState>, Constable

public enum QueryState extends Enum<QueryState>
  • Enum Constant Details

    • 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 Details

    • TERMINAL_QUERY_STATES

      public static final Set<QueryState> TERMINAL_QUERY_STATES
  • Method Details

    • values

      public static QueryState[] 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

      public static QueryState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isDone

      public boolean isDone()
      Is this a terminal state.