public enum QueryStatus extends Enum<QueryStatus>
Enum Constant and Description |
---|
ABORTED |
ABORTING |
BLOCKED
The state when a statement is waiting on a lock on resource held by another statement.
|
DISCONNECTED |
FAILED_WITH_ERROR |
FAILED_WITH_INCIDENT |
NO_DATA |
QUEUED |
QUEUED_REPAIRING_WAREHOUSE |
RESTARTED |
RESUMING_WAREHOUSE |
RUNNING |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
int |
getErrorCode() |
String |
getErrorMessage() |
static QueryStatus |
getStatusFromString(String description) |
int |
getValue() |
static boolean |
isAnError(QueryStatus status) |
static boolean |
isStillRunning(QueryStatus status) |
void |
setErrorCode(int errorCode) |
void |
setErrorMessage(String message) |
static QueryStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryStatus RUNNING
public static final QueryStatus ABORTING
public static final QueryStatus SUCCESS
public static final QueryStatus FAILED_WITH_ERROR
public static final QueryStatus ABORTED
public static final QueryStatus QUEUED
public static final QueryStatus FAILED_WITH_INCIDENT
public static final QueryStatus DISCONNECTED
public static final QueryStatus RESUMING_WAREHOUSE
public static final QueryStatus QUEUED_REPAIRING_WAREHOUSE
public static final QueryStatus RESTARTED
public static final QueryStatus BLOCKED
public static final QueryStatus NO_DATA
public static QueryStatus[] values()
for (QueryStatus c : QueryStatus.values()) System.out.println(c);
public static QueryStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public String getDescription()
public String getErrorMessage()
public int getErrorCode()
public void setErrorMessage(String message)
public void setErrorCode(int errorCode)
public static boolean isStillRunning(QueryStatus status)
public static boolean isAnError(QueryStatus status)
public static QueryStatus getStatusFromString(String description)
Copyright © 2022. All rights reserved.