@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonAthenaAsyncClient extends AmazonAthenaClient implements AmazonAthenaAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Amazon Athena is an interactive query service that lets you use standard SQL to analyze data directly in Amazon S3. You can point Athena at your data in Amazon S3 and run ad-hoc queries and get results in seconds. Athena is serverless, so there is no infrastructure to set up or manage. You pay only for the queries you run. Athena scales automatically—executing queries in parallel—so results are fast, even with large datasets and complex queries. For more information, see What is Amazon Athena in the Amazon Athena User Guide.
If you connect to Athena using the JDBC driver, use version 1.1.0 of the driver or later with the Amazon Athena API. Earlier version drivers do not support the API. For more information and to download the driver, see Accessing Amazon Athena with JDBC.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbatchGetNamedQuery, batchGetQueryExecution, builder, createNamedQuery, createWorkGroup, deleteNamedQuery, deleteWorkGroup, getCachedResponseMetadata, getNamedQuery, getQueryExecution, getQueryResults, getWorkGroup, listNamedQueries, listQueryExecutions, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateWorkGroupaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchGetNamedQuery, batchGetQueryExecution, createNamedQuery, createWorkGroup, deleteNamedQuery, deleteWorkGroup, getCachedResponseMetadata, getNamedQuery, getQueryExecution, getQueryResults, getWorkGroup, listNamedQueries, listQueryExecutions, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateWorkGrouppublic static AmazonAthenaAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetNamedQueryResult> batchGetNamedQueryAsync(BatchGetNamedQueryRequest request)
AmazonAthenaAsyncReturns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use ListNamedQueriesInput to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput to get details about each unique query execution, and ListQueryExecutionsInput to get a list of query execution IDs.
batchGetNamedQueryAsync in interface AmazonAthenaAsyncpublic Future<BatchGetNamedQueryResult> batchGetNamedQueryAsync(BatchGetNamedQueryRequest request, AsyncHandler<BatchGetNamedQueryRequest,BatchGetNamedQueryResult> asyncHandler)
AmazonAthenaAsyncReturns the details of a single named query or a list of up to 50 queries, which you provide as an array of query ID strings. Requires you to have access to the workgroup in which the queries were saved. Use ListNamedQueriesInput to get the list of named query IDs in the specified workgroup. If information could not be retrieved for a submitted query ID, information about the query ID submitted is listed under UnprocessedNamedQueryId. Named queries differ from executed queries. Use BatchGetQueryExecutionInput to get details about each unique query execution, and ListQueryExecutionsInput to get a list of query execution IDs.
batchGetNamedQueryAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<BatchGetQueryExecutionResult> batchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request)
AmazonAthenaAsyncReturns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries.
batchGetQueryExecutionAsync in interface AmazonAthenaAsyncpublic Future<BatchGetQueryExecutionResult> batchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, AsyncHandler<BatchGetQueryExecutionRequest,BatchGetQueryExecutionResult> asyncHandler)
AmazonAthenaAsyncReturns the details of a single query execution or a list of up to 50 query executions, which you provide as an array of query execution ID strings. Requires you to have access to the workgroup in which the queries ran. To get a list of query execution IDs, use ListQueryExecutionsInput$WorkGroup. Query executions differ from named (saved) queries. Use BatchGetNamedQueryInput to get details about named queries.
batchGetQueryExecutionAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateNamedQueryResult> createNamedQueryAsync(CreateNamedQueryRequest request)
AmazonAthenaAsyncCreates a named query in the specified workgroup. Requires that you have access to the workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
createNamedQueryAsync in interface AmazonAthenaAsyncpublic Future<CreateNamedQueryResult> createNamedQueryAsync(CreateNamedQueryRequest request, AsyncHandler<CreateNamedQueryRequest,CreateNamedQueryResult> asyncHandler)
AmazonAthenaAsyncCreates a named query in the specified workgroup. Requires that you have access to the workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
createNamedQueryAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateWorkGroupResult> createWorkGroupAsync(CreateWorkGroupRequest request)
AmazonAthenaAsyncCreates a workgroup with the specified name.
createWorkGroupAsync in interface AmazonAthenaAsyncpublic Future<CreateWorkGroupResult> createWorkGroupAsync(CreateWorkGroupRequest request, AsyncHandler<CreateWorkGroupRequest,CreateWorkGroupResult> asyncHandler)
AmazonAthenaAsyncCreates a workgroup with the specified name.
createWorkGroupAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteNamedQueryResult> deleteNamedQueryAsync(DeleteNamedQueryRequest request)
AmazonAthenaAsyncDeletes the named query if you have access to the workgroup in which the query was saved.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
deleteNamedQueryAsync in interface AmazonAthenaAsyncpublic Future<DeleteNamedQueryResult> deleteNamedQueryAsync(DeleteNamedQueryRequest request, AsyncHandler<DeleteNamedQueryRequest,DeleteNamedQueryResult> asyncHandler)
AmazonAthenaAsyncDeletes the named query if you have access to the workgroup in which the query was saved.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
deleteNamedQueryAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteWorkGroupResult> deleteWorkGroupAsync(DeleteWorkGroupRequest request)
AmazonAthenaAsyncDeletes the workgroup with the specified name. The primary workgroup cannot be deleted.
deleteWorkGroupAsync in interface AmazonAthenaAsyncpublic Future<DeleteWorkGroupResult> deleteWorkGroupAsync(DeleteWorkGroupRequest request, AsyncHandler<DeleteWorkGroupRequest,DeleteWorkGroupResult> asyncHandler)
AmazonAthenaAsyncDeletes the workgroup with the specified name. The primary workgroup cannot be deleted.
deleteWorkGroupAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetNamedQueryResult> getNamedQueryAsync(GetNamedQueryRequest request)
AmazonAthenaAsyncReturns information about a single query. Requires that you have access to the workgroup in which the query was saved.
getNamedQueryAsync in interface AmazonAthenaAsyncpublic Future<GetNamedQueryResult> getNamedQueryAsync(GetNamedQueryRequest request, AsyncHandler<GetNamedQueryRequest,GetNamedQueryResult> asyncHandler)
AmazonAthenaAsyncReturns information about a single query. Requires that you have access to the workgroup in which the query was saved.
getNamedQueryAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetQueryExecutionResult> getQueryExecutionAsync(GetQueryExecutionRequest request)
AmazonAthenaAsyncReturns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID.
getQueryExecutionAsync in interface AmazonAthenaAsyncpublic Future<GetQueryExecutionResult> getQueryExecutionAsync(GetQueryExecutionRequest request, AsyncHandler<GetQueryExecutionRequest,GetQueryExecutionResult> asyncHandler)
AmazonAthenaAsyncReturns information about a single execution of a query if you have access to the workgroup in which the query ran. Each time a query executes, information about the query execution is saved with a unique ID.
getQueryExecutionAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetQueryResultsResult> getQueryResultsAsync(GetQueryResultsRequest request)
AmazonAthenaAsync
Returns the results of a single query execution specified by QueryExecutionId if you have access to
the workgroup in which the query ran. This request does not execute the query but returns results. Use
StartQueryExecution to run a query.
getQueryResultsAsync in interface AmazonAthenaAsyncpublic Future<GetQueryResultsResult> getQueryResultsAsync(GetQueryResultsRequest request, AsyncHandler<GetQueryResultsRequest,GetQueryResultsResult> asyncHandler)
AmazonAthenaAsync
Returns the results of a single query execution specified by QueryExecutionId if you have access to
the workgroup in which the query ran. This request does not execute the query but returns results. Use
StartQueryExecution to run a query.
getQueryResultsAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetWorkGroupResult> getWorkGroupAsync(GetWorkGroupRequest request)
AmazonAthenaAsyncReturns information about the workgroup with the specified name.
getWorkGroupAsync in interface AmazonAthenaAsyncpublic Future<GetWorkGroupResult> getWorkGroupAsync(GetWorkGroupRequest request, AsyncHandler<GetWorkGroupRequest,GetWorkGroupResult> asyncHandler)
AmazonAthenaAsyncReturns information about the workgroup with the specified name.
getWorkGroupAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListNamedQueriesResult> listNamedQueriesAsync(ListNamedQueriesRequest request)
AmazonAthenaAsyncProvides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listNamedQueriesAsync in interface AmazonAthenaAsyncpublic Future<ListNamedQueriesResult> listNamedQueriesAsync(ListNamedQueriesRequest request, AsyncHandler<ListNamedQueriesRequest,ListNamedQueriesResult> asyncHandler)
AmazonAthenaAsyncProvides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listNamedQueriesAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListQueryExecutionsResult> listQueryExecutionsAsync(ListQueryExecutionsRequest request)
AmazonAthenaAsyncProvides a list of available query execution IDs for the queries in the specified workgroup. Requires you to have access to the workgroup in which the queries ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listQueryExecutionsAsync in interface AmazonAthenaAsyncpublic Future<ListQueryExecutionsResult> listQueryExecutionsAsync(ListQueryExecutionsRequest request, AsyncHandler<ListQueryExecutionsRequest,ListQueryExecutionsResult> asyncHandler)
AmazonAthenaAsyncProvides a list of available query execution IDs for the queries in the specified workgroup. Requires you to have access to the workgroup in which the queries ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listQueryExecutionsAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonAthenaAsyncLists the tags associated with this workgroup.
listTagsForResourceAsync in interface AmazonAthenaAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonAthenaAsyncLists the tags associated with this workgroup.
listTagsForResourceAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListWorkGroupsResult> listWorkGroupsAsync(ListWorkGroupsRequest request)
AmazonAthenaAsyncLists available workgroups for the account.
listWorkGroupsAsync in interface AmazonAthenaAsyncpublic Future<ListWorkGroupsResult> listWorkGroupsAsync(ListWorkGroupsRequest request, AsyncHandler<ListWorkGroupsRequest,ListWorkGroupsResult> asyncHandler)
AmazonAthenaAsyncLists available workgroups for the account.
listWorkGroupsAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StartQueryExecutionResult> startQueryExecutionAsync(StartQueryExecutionRequest request)
AmazonAthenaAsync
Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup
in which the query ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
startQueryExecutionAsync in interface AmazonAthenaAsyncpublic Future<StartQueryExecutionResult> startQueryExecutionAsync(StartQueryExecutionRequest request, AsyncHandler<StartQueryExecutionRequest,StartQueryExecutionResult> asyncHandler)
AmazonAthenaAsync
Runs the SQL query statements contained in the Query. Requires you to have access to the workgroup
in which the query ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
startQueryExecutionAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<StopQueryExecutionResult> stopQueryExecutionAsync(StopQueryExecutionRequest request)
AmazonAthenaAsyncStops a query execution. Requires you to have access to the workgroup in which the query ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
stopQueryExecutionAsync in interface AmazonAthenaAsyncpublic Future<StopQueryExecutionResult> stopQueryExecutionAsync(StopQueryExecutionRequest request, AsyncHandler<StopQueryExecutionRequest,StopQueryExecutionResult> asyncHandler)
AmazonAthenaAsyncStops a query execution. Requires you to have access to the workgroup in which the query ran.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
stopQueryExecutionAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonAthenaAsyncAdds one or more tags to the resource, such as a workgroup. A tag is a label that you assign to an AWS Athena resource (a workgroup). Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize resources (workgroups) in Athena, for example, by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups in your account. For best practices, see AWS Tagging Strategies. The key length is from 1 (minimum) to 128 (maximum) Unicode characters in UTF-8. The tag value length is from 0 (minimum) to 256 (maximum) Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one, separate them by commas.
tagResourceAsync in interface AmazonAthenaAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonAthenaAsyncAdds one or more tags to the resource, such as a workgroup. A tag is a label that you assign to an AWS Athena resource (a workgroup). Each tag consists of a key and an optional value, both of which you define. Tags enable you to categorize resources (workgroups) in Athena, for example, by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups in your account. For best practices, see AWS Tagging Strategies. The key length is from 1 (minimum) to 128 (maximum) Unicode characters in UTF-8. The tag value length is from 0 (minimum) to 256 (maximum) Unicode characters in UTF-8. You can use letters and numbers representable in UTF-8, and the following characters: + - = . _ : / @. Tag keys and values are case-sensitive. Tag keys must be unique per resource. If you specify more than one, separate them by commas.
tagResourceAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonAthenaAsyncRemoves one or more tags from the workgroup resource. Takes as an input a list of TagKey Strings separated by commas, and removes their tags at the same time.
untagResourceAsync in interface AmazonAthenaAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonAthenaAsyncRemoves one or more tags from the workgroup resource. Takes as an input a list of TagKey Strings separated by commas, and removes their tags at the same time.
untagResourceAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateWorkGroupResult> updateWorkGroupAsync(UpdateWorkGroupRequest request)
AmazonAthenaAsyncUpdates the workgroup with the specified name. The workgroup's name cannot be changed.
updateWorkGroupAsync in interface AmazonAthenaAsyncpublic Future<UpdateWorkGroupResult> updateWorkGroupAsync(UpdateWorkGroupRequest request, AsyncHandler<UpdateWorkGroupRequest,UpdateWorkGroupResult> asyncHandler)
AmazonAthenaAsyncUpdates the workgroup with the specified name. The workgroup's name cannot be changed.
updateWorkGroupAsync in interface AmazonAthenaAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AmazonAthenashutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.