Interface QueryExecutionStatus.Builder

    • Method Detail

      • state

        QueryExecutionStatus.Builder state​(String 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.

        Parameters:
        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 .

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryExecutionState, QueryExecutionState
      • state

        QueryExecutionStatus.Builder state​(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.

        Parameters:
        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 .

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        QueryExecutionState, QueryExecutionState
      • stateChangeReason

        QueryExecutionStatus.Builder stateChangeReason​(String stateChangeReason)

        Further detail about the status of the query.

        Parameters:
        stateChangeReason - Further detail about the status of the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • submissionDateTime

        QueryExecutionStatus.Builder submissionDateTime​(Instant submissionDateTime)

        The date and time that the query was submitted.

        Parameters:
        submissionDateTime - The date and time that the query was submitted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • completionDateTime

        QueryExecutionStatus.Builder completionDateTime​(Instant completionDateTime)

        The date and time that the query completed.

        Parameters:
        completionDateTime - The date and time that the query completed.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • athenaError

        QueryExecutionStatus.Builder athenaError​(AthenaError athenaError)

        Provides information about an Athena query error.

        Parameters:
        athenaError - Provides information about an Athena query error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.