@Generated(value="software.amazon.awssdk:codegen") public final class QueryExecutionStatus extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
Modifier and Type | Class and Description |
---|---|
static interface |
QueryExecutionStatus.Builder |
Modifier and Type | Method and Description |
---|---|
AthenaError |
athenaError()
Provides information about an Athena query error.
|
static QueryExecutionStatus.Builder |
builder() |
Instant |
completionDateTime()
The date and time that the query completed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends QueryExecutionStatus.Builder> |
serializableBuilderClass() |
QueryExecutionState |
state()
The state of query execution.
|
String |
stateAsString()
The state of query execution.
|
String |
stateChangeReason()
Further detail about the status of the query.
|
Instant |
submissionDateTime()
The date and time that the query was submitted.
|
QueryExecutionStatus.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final QueryExecutionState state()
The state of query execution. QUEUED
indicates that the query has been submitted to the service, and
Athena will execute the query as soon as resources are available. RUNNING
indicates that the query
is in execution phase. SUCCEEDED
indicates that the query completed without errors.
FAILED
indicates that the query experienced an error and did not complete processing.
CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the
query state transition from RUNNING
or FAILED
to QUEUED
.
If the service returns an enum value that is not available in the current SDK version, state
will return
QueryExecutionState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
QUEUED
indicates that the query has been submitted to the
service, and Athena will execute the query as soon as resources are available. RUNNING
indicates that the query is in execution phase. SUCCEEDED
indicates that the query completed
without errors. FAILED
indicates that the query experienced an error and did not complete
processing. CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see
the query state transition from RUNNING
or FAILED
to QUEUED
.
QueryExecutionState
public final String stateAsString()
The state of query execution. QUEUED
indicates that the query has been submitted to the service, and
Athena will execute the query as soon as resources are available. RUNNING
indicates that the query
is in execution phase. SUCCEEDED
indicates that the query completed without errors.
FAILED
indicates that the query experienced an error and did not complete processing.
CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the
query state transition from RUNNING
or FAILED
to QUEUED
.
If the service returns an enum value that is not available in the current SDK version, state
will return
QueryExecutionState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
QUEUED
indicates that the query has been submitted to the
service, and Athena will execute the query as soon as resources are available. RUNNING
indicates that the query is in execution phase. SUCCEEDED
indicates that the query completed
without errors. FAILED
indicates that the query experienced an error and did not complete
processing. CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see
the query state transition from RUNNING
or FAILED
to QUEUED
.
QueryExecutionState
public final String stateChangeReason()
Further detail about the status of the query.
public final Instant submissionDateTime()
The date and time that the query was submitted.
public final Instant completionDateTime()
The date and time that the query completed.
public final AthenaError athenaError()
Provides information about an Athena query error.
public QueryExecutionStatus.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>
public static QueryExecutionStatus.Builder builder()
public static Class<? extends QueryExecutionStatus.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.