@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_METRIC
ENDPOINT_PREFIX
batchGetNamedQuery, batchGetQueryExecution, builder, createDataCatalog, createNamedQuery, createWorkGroup, deleteDataCatalog, deleteNamedQuery, deleteWorkGroup, getCachedResponseMetadata, getDatabase, getDataCatalog, getNamedQuery, getQueryExecution, getQueryResults, getTableMetadata, getWorkGroup, listDatabases, listDataCatalogs, listNamedQueries, listQueryExecutions, listTableMetadata, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateDataCatalog, updateWorkGroup
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchGetNamedQuery, batchGetQueryExecution, createDataCatalog, createNamedQuery, createWorkGroup, deleteDataCatalog, deleteNamedQuery, deleteWorkGroup, getCachedResponseMetadata, getDatabase, getDataCatalog, getNamedQuery, getQueryExecution, getQueryResults, getTableMetadata, getWorkGroup, listDatabases, listDataCatalogs, listNamedQueries, listQueryExecutions, listTableMetadata, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateDataCatalog, updateWorkGroup
public static AmazonAthenaAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetNamedQueryResult> batchGetNamedQueryAsync(BatchGetNamedQueryRequest request)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
public Future<BatchGetNamedQueryResult> batchGetNamedQueryAsync(BatchGetNamedQueryRequest request, AsyncHandler<BatchGetNamedQueryRequest,BatchGetNamedQueryResult> asyncHandler)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
public Future<BatchGetQueryExecutionResult> batchGetQueryExecutionAsync(BatchGetQueryExecutionRequest request, AsyncHandler<BatchGetQueryExecutionRequest,BatchGetQueryExecutionResult> asyncHandler)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
asyncHandler
- 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<CreateDataCatalogResult> createDataCatalogAsync(CreateDataCatalogRequest request)
AmazonAthenaAsync
Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same AWS account.
createDataCatalogAsync
in interface AmazonAthenaAsync
public Future<CreateDataCatalogResult> createDataCatalogAsync(CreateDataCatalogRequest request, AsyncHandler<CreateDataCatalogRequest,CreateDataCatalogResult> asyncHandler)
AmazonAthenaAsync
Creates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same AWS account.
createDataCatalogAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Creates 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 AmazonAthenaAsync
public Future<CreateNamedQueryResult> createNamedQueryAsync(CreateNamedQueryRequest request, AsyncHandler<CreateNamedQueryRequest,CreateNamedQueryResult> asyncHandler)
AmazonAthenaAsync
Creates 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 AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Creates a workgroup with the specified name.
createWorkGroupAsync
in interface AmazonAthenaAsync
public Future<CreateWorkGroupResult> createWorkGroupAsync(CreateWorkGroupRequest request, AsyncHandler<CreateWorkGroupRequest,CreateWorkGroupResult> asyncHandler)
AmazonAthenaAsync
Creates a workgroup with the specified name.
createWorkGroupAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<DeleteDataCatalogResult> deleteDataCatalogAsync(DeleteDataCatalogRequest request)
AmazonAthenaAsync
Deletes a data catalog.
deleteDataCatalogAsync
in interface AmazonAthenaAsync
public Future<DeleteDataCatalogResult> deleteDataCatalogAsync(DeleteDataCatalogRequest request, AsyncHandler<DeleteDataCatalogRequest,DeleteDataCatalogResult> asyncHandler)
AmazonAthenaAsync
Deletes a data catalog.
deleteDataCatalogAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Deletes 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 AmazonAthenaAsync
public Future<DeleteNamedQueryResult> deleteNamedQueryAsync(DeleteNamedQueryRequest request, AsyncHandler<DeleteNamedQueryRequest,DeleteNamedQueryResult> asyncHandler)
AmazonAthenaAsync
Deletes 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 AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.
deleteWorkGroupAsync
in interface AmazonAthenaAsync
public Future<DeleteWorkGroupResult> deleteWorkGroupAsync(DeleteWorkGroupRequest request, AsyncHandler<DeleteWorkGroupRequest,DeleteWorkGroupResult> asyncHandler)
AmazonAthenaAsync
Deletes the workgroup with the specified name. The primary workgroup cannot be deleted.
deleteWorkGroupAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<GetDataCatalogResult> getDataCatalogAsync(GetDataCatalogRequest request)
AmazonAthenaAsync
Returns the specified data catalog.
getDataCatalogAsync
in interface AmazonAthenaAsync
public Future<GetDataCatalogResult> getDataCatalogAsync(GetDataCatalogRequest request, AsyncHandler<GetDataCatalogRequest,GetDataCatalogResult> asyncHandler)
AmazonAthenaAsync
Returns the specified data catalog.
getDataCatalogAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<GetDatabaseResult> getDatabaseAsync(GetDatabaseRequest request)
AmazonAthenaAsync
Returns a database object for the specfied database and data catalog.
getDatabaseAsync
in interface AmazonAthenaAsync
public Future<GetDatabaseResult> getDatabaseAsync(GetDatabaseRequest request, AsyncHandler<GetDatabaseRequest,GetDatabaseResult> asyncHandler)
AmazonAthenaAsync
Returns a database object for the specfied database and data catalog.
getDatabaseAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.
getNamedQueryAsync
in interface AmazonAthenaAsync
public Future<GetNamedQueryResult> getNamedQueryAsync(GetNamedQueryRequest request, AsyncHandler<GetNamedQueryRequest,GetNamedQueryResult> asyncHandler)
AmazonAthenaAsync
Returns information about a single query. Requires that you have access to the workgroup in which the query was saved.
getNamedQueryAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
public Future<GetQueryExecutionResult> getQueryExecutionAsync(GetQueryExecutionRequest request, AsyncHandler<GetQueryExecutionRequest,GetQueryExecutionResult> asyncHandler)
AmazonAthenaAsync
Returns 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 AmazonAthenaAsync
asyncHandler
- 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
Streams the results of a single query execution specified by QueryExecutionId
from the Athena query
results location in Amazon S3. For more information, see Query Results in the Amazon Athena User
Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a
query.
To stream query results successfully, the IAM principal with permission to call GetQueryResults
also
must have permissions to the Amazon S3 GetObject
action for the Athena query results location.
IAM principals with permission to the Amazon S3 GetObject
action for the query results location are
able to retrieve query results from Amazon S3 even if permission to the GetQueryResults
action is
denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are
denied.
getQueryResultsAsync
in interface AmazonAthenaAsync
public Future<GetQueryResultsResult> getQueryResultsAsync(GetQueryResultsRequest request, AsyncHandler<GetQueryResultsRequest,GetQueryResultsResult> asyncHandler)
AmazonAthenaAsync
Streams the results of a single query execution specified by QueryExecutionId
from the Athena query
results location in Amazon S3. For more information, see Query Results in the Amazon Athena User
Guide. This request does not execute the query but returns results. Use StartQueryExecution to run a
query.
To stream query results successfully, the IAM principal with permission to call GetQueryResults
also
must have permissions to the Amazon S3 GetObject
action for the Athena query results location.
IAM principals with permission to the Amazon S3 GetObject
action for the query results location are
able to retrieve query results from Amazon S3 even if permission to the GetQueryResults
action is
denied. To restrict user or role access, ensure that Amazon S3 permissions to the Athena query location are
denied.
getQueryResultsAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<GetTableMetadataResult> getTableMetadataAsync(GetTableMetadataRequest request)
AmazonAthenaAsync
Returns table metadata for the specified catalog, database, and table.
getTableMetadataAsync
in interface AmazonAthenaAsync
public Future<GetTableMetadataResult> getTableMetadataAsync(GetTableMetadataRequest request, AsyncHandler<GetTableMetadataRequest,GetTableMetadataResult> asyncHandler)
AmazonAthenaAsync
Returns table metadata for the specified catalog, database, and table.
getTableMetadataAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Returns information about the workgroup with the specified name.
getWorkGroupAsync
in interface AmazonAthenaAsync
public Future<GetWorkGroupResult> getWorkGroupAsync(GetWorkGroupRequest request, AsyncHandler<GetWorkGroupRequest,GetWorkGroupResult> asyncHandler)
AmazonAthenaAsync
Returns information about the workgroup with the specified name.
getWorkGroupAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<ListDataCatalogsResult> listDataCatalogsAsync(ListDataCatalogsRequest request)
AmazonAthenaAsync
Lists the data catalogs in the current AWS account.
listDataCatalogsAsync
in interface AmazonAthenaAsync
public Future<ListDataCatalogsResult> listDataCatalogsAsync(ListDataCatalogsRequest request, AsyncHandler<ListDataCatalogsRequest,ListDataCatalogsResult> asyncHandler)
AmazonAthenaAsync
Lists the data catalogs in the current AWS account.
listDataCatalogsAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<ListDatabasesResult> listDatabasesAsync(ListDatabasesRequest request)
AmazonAthenaAsync
Lists the databases in the specified data catalog.
listDatabasesAsync
in interface AmazonAthenaAsync
public Future<ListDatabasesResult> listDatabasesAsync(ListDatabasesRequest request, AsyncHandler<ListDatabasesRequest,ListDatabasesResult> asyncHandler)
AmazonAthenaAsync
Lists the databases in the specified data catalog.
listDatabasesAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listNamedQueriesAsync
in interface AmazonAthenaAsync
public Future<ListNamedQueriesResult> listNamedQueriesAsync(ListNamedQueriesRequest request, AsyncHandler<ListNamedQueriesRequest,ListNamedQueriesResult> asyncHandler)
AmazonAthenaAsync
Provides a list of available query IDs only for queries saved in the specified workgroup. Requires that you have access to the specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.
For code samples using the AWS SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
listNamedQueriesAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Provides a list of available query execution IDs for the queries in the specified workgroup. If a workgroup is not specified, returns a list of query execution IDs for the primary 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 AmazonAthenaAsync
public Future<ListQueryExecutionsResult> listQueryExecutionsAsync(ListQueryExecutionsRequest request, AsyncHandler<ListQueryExecutionsRequest,ListQueryExecutionsResult> asyncHandler)
AmazonAthenaAsync
Provides a list of available query execution IDs for the queries in the specified workgroup. If a workgroup is not specified, returns a list of query execution IDs for the primary 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 AmazonAthenaAsync
asyncHandler
- 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<ListTableMetadataResult> listTableMetadataAsync(ListTableMetadataRequest request)
AmazonAthenaAsync
Lists the metadata for the tables in the specified data catalog database.
listTableMetadataAsync
in interface AmazonAthenaAsync
public Future<ListTableMetadataResult> listTableMetadataAsync(ListTableMetadataRequest request, AsyncHandler<ListTableMetadataRequest,ListTableMetadataResult> asyncHandler)
AmazonAthenaAsync
Lists the metadata for the tables in the specified data catalog database.
listTableMetadataAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Lists the tags associated with an Athena workgroup or data catalog resource.
listTagsForResourceAsync
in interface AmazonAthenaAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonAthenaAsync
Lists the tags associated with an Athena workgroup or data catalog resource.
listTagsForResourceAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Lists available workgroups for the account.
listWorkGroupsAsync
in interface AmazonAthenaAsync
public Future<ListWorkGroupsResult> listWorkGroupsAsync(ListWorkGroupsRequest request, AsyncHandler<ListWorkGroupsRequest,ListWorkGroupsResult> asyncHandler)
AmazonAthenaAsync
Lists available workgroups for the account.
listWorkGroupsAsync
in interface AmazonAthenaAsync
asyncHandler
- 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. Running queries against an external catalog requires GetDataCatalog permission to
the catalog. For code samples using the AWS SDK for Java, see Examples and Code Samples in the
Amazon Athena User Guide.
startQueryExecutionAsync
in interface AmazonAthenaAsync
public 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. Running queries against an external catalog requires GetDataCatalog permission to
the catalog. For code samples using the AWS SDK for Java, see Examples and Code Samples in the
Amazon Athena User Guide.
startQueryExecutionAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Stops 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 AmazonAthenaAsync
public Future<StopQueryExecutionResult> stopQueryExecutionAsync(StopQueryExecutionRequest request, AsyncHandler<StopQueryExecutionRequest,StopQueryExecutionResult> asyncHandler)
AmazonAthenaAsync
Stops 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 AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. In Athena, a resource can be a workgroup or data catalog. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups or data catalogs in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags 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 tag, separate them by commas.
tagResourceAsync
in interface AmazonAthenaAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonAthenaAsync
Adds one or more tags to an Athena resource. A tag is a label that you assign to a resource. In Athena, a resource can be a workgroup or data catalog. Each tag consists of a key and an optional value, both of which you define. For example, you can use tags to categorize Athena workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to search and filter workgroups or data catalogs in your account. For best practices, see Tagging Best Practices. Tag keys can be from 1 to 128 UTF-8 Unicode characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags 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 tag, separate them by commas.
tagResourceAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Removes one or more tags from a data catalog or workgroup resource.
untagResourceAsync
in interface AmazonAthenaAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonAthenaAsync
Removes one or more tags from a data catalog or workgroup resource.
untagResourceAsync
in interface AmazonAthenaAsync
asyncHandler
- 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<UpdateDataCatalogResult> updateDataCatalogAsync(UpdateDataCatalogRequest request)
AmazonAthenaAsync
Updates the data catalog that has the specified name.
updateDataCatalogAsync
in interface AmazonAthenaAsync
public Future<UpdateDataCatalogResult> updateDataCatalogAsync(UpdateDataCatalogRequest request, AsyncHandler<UpdateDataCatalogRequest,UpdateDataCatalogResult> asyncHandler)
AmazonAthenaAsync
Updates the data catalog that has the specified name.
updateDataCatalogAsync
in interface AmazonAthenaAsync
asyncHandler
- 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)
AmazonAthenaAsync
Updates the workgroup with the specified name. The workgroup's name cannot be changed.
updateWorkGroupAsync
in interface AmazonAthenaAsync
public Future<UpdateWorkGroupResult> updateWorkGroupAsync(UpdateWorkGroupRequest request, AsyncHandler<UpdateWorkGroupRequest,UpdateWorkGroupResult> asyncHandler)
AmazonAthenaAsync
Updates the workgroup with the specified name. The workgroup's name cannot be changed.
updateWorkGroupAsync
in interface AmazonAthenaAsync
asyncHandler
- 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 AmazonAthena
shutdown
in class AmazonAthenaClient