Class QueryExecutionStatus
- java.lang.Object
-
- software.amazon.awssdk.services.athena.model.QueryExecutionStatus
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQueryExecutionStatus.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AthenaErrorathenaError()Provides information about an Athena query error.static QueryExecutionStatus.Builderbuilder()InstantcompletionDateTime()The date and time that the query completed.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends QueryExecutionStatus.Builder>serializableBuilderClass()QueryExecutionStatestate()The state of query execution.StringstateAsString()The state of query execution.StringstateChangeReason()Further detail about the status of the query.InstantsubmissionDateTime()The date and time that the query was submitted.QueryExecutionStatus.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
state
public final QueryExecutionState state()
The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.If the service returns an enum value that is not available in the current SDK version,
statewill returnQueryExecutionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED. - See Also:
QueryExecutionState
-
stateAsString
public final String stateAsString()
The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.If the service returns an enum value that is not available in the current SDK version,
statewill returnQueryExecutionState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED. - See Also:
QueryExecutionState
-
stateChangeReason
public final String stateChangeReason()
Further detail about the status of the query.
- Returns:
- Further detail about the status of the query.
-
submissionDateTime
public final Instant submissionDateTime()
The date and time that the query was submitted.
- Returns:
- The date and time that the query was submitted.
-
completionDateTime
public final Instant completionDateTime()
The date and time that the query completed.
- Returns:
- The date and time that the query completed.
-
athenaError
public final AthenaError athenaError()
Provides information about an Athena query error.
- Returns:
- Provides information about an Athena query error.
-
toBuilder
public QueryExecutionStatus.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>
-
builder
public static QueryExecutionStatus.Builder builder()
-
serializableBuilderClass
public static Class<? extends QueryExecutionStatus.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-