Enum QueryStatus

    • Enum Constant Detail

      • FAILED_WITH_ERROR

        public static final QueryStatus FAILED_WITH_ERROR
      • FAILED_WITH_INCIDENT

        public static final QueryStatus FAILED_WITH_INCIDENT
      • DISCONNECTED

        public static final QueryStatus DISCONNECTED
      • RESUMING_WAREHOUSE

        public static final QueryStatus RESUMING_WAREHOUSE
      • QUEUED_REPAIRING_WAREHOUSE

        public static final QueryStatus QUEUED_REPAIRING_WAREHOUSE
      • BLOCKED

        public static final QueryStatus BLOCKED
        The state when a statement is waiting on a lock on resource held by another statement.
    • Method Detail

      • values

        public static QueryStatus[] 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 (QueryStatus c : QueryStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QueryStatus 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
      • getValue

        public int getValue()
      • getDescription

        public String getDescription()
      • isStillRunning

        public static boolean isStillRunning​(QueryStatus status)
      • isAnError

        public static boolean isAnError​(QueryStatus status)
      • getStatusFromString

        public static QueryStatus getStatusFromString​(String description)