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()
      • setErrorMessage

        @Deprecated
        public void setErrorMessage​(String message)
        Deprecated.
        use QueryStatusV2 instead
        Parameters:
        message - the error message
      • setErrorCode

        @Deprecated
        public void setErrorCode​(int errorCode)
        Deprecated.
        use QueryStatusV2 instead
        Parameters:
        errorCode - the error code
      • isStillRunning

        public static boolean isStillRunning​(QueryStatus status)
        Check if query is still running.
        Parameters:
        status - QueryStatus
        Returns:
        true if query is still running
      • isAnError

        public static boolean isAnError​(QueryStatus status)
        Check if query status is an error
        Parameters:
        status - QueryStatus
        Returns:
        true if query status is an error status
      • getStatusFromString

        public static QueryStatus getStatusFromString​(String description)
        Get the query status from a string description
        Parameters:
        description - the status description
        Returns:
        QueryStatus