Enum QueryState

    • 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 name
        NullPointerException - if the argument is null
      • isDone

        public boolean isDone()
        Is this a terminal state.