@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 Amazon Web Services SDK for Java, see Examples and Code Samples in the Amazon Athena User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbatchGetNamedQuery, batchGetQueryExecution, builder, createDataCatalog, createNamedQuery, createPreparedStatement, createWorkGroup, deleteDataCatalog, deleteNamedQuery, deletePreparedStatement, deleteWorkGroup, getCachedResponseMetadata, getDatabase, getDataCatalog, getNamedQuery, getPreparedStatement, getQueryExecution, getQueryResults, getTableMetadata, getWorkGroup, listDatabases, listDataCatalogs, listEngineVersions, listNamedQueries, listPreparedStatements, listQueryExecutions, listTableMetadata, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateDataCatalog, updatePreparedStatement, 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, createDataCatalog, createNamedQuery, createPreparedStatement, createWorkGroup, deleteDataCatalog, deleteNamedQuery, deletePreparedStatement, deleteWorkGroup, getCachedResponseMetadata, getDatabase, getDataCatalog, getNamedQuery, getPreparedStatement, getQueryExecution, getQueryResults, getTableMetadata, getWorkGroup, listDatabases, listDataCatalogs, listEngineVersions, listNamedQueries, listPreparedStatements, listQueryExecutions, listTableMetadata, listTagsForResource, listWorkGroups, startQueryExecution, stopQueryExecution, tagResource, untagResource, updateDataCatalog, updatePreparedStatement, 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<CreateDataCatalogResult> createDataCatalogAsync(CreateDataCatalogRequest request)
AmazonAthenaAsyncCreates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account.
createDataCatalogAsync in interface AmazonAthenaAsyncpublic Future<CreateDataCatalogResult> createDataCatalogAsync(CreateDataCatalogRequest request, AsyncHandler<CreateDataCatalogRequest,CreateDataCatalogResult> asyncHandler)
AmazonAthenaAsyncCreates (registers) a data catalog with the specified name and properties. Catalogs created are visible to all users of the same Amazon Web Services account.
createDataCatalogAsync 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 Amazon Web Services 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 Amazon Web Services 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<CreatePreparedStatementResult> createPreparedStatementAsync(CreatePreparedStatementRequest request)
AmazonAthenaAsyncCreates a prepared statement for use with SQL queries in Athena.
createPreparedStatementAsync in interface AmazonAthenaAsyncpublic Future<CreatePreparedStatementResult> createPreparedStatementAsync(CreatePreparedStatementRequest request, AsyncHandler<CreatePreparedStatementRequest,CreatePreparedStatementResult> asyncHandler)
AmazonAthenaAsyncCreates a prepared statement for use with SQL queries in Athena.
createPreparedStatementAsync 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<DeleteDataCatalogResult> deleteDataCatalogAsync(DeleteDataCatalogRequest request)
AmazonAthenaAsyncDeletes a data catalog.
deleteDataCatalogAsync in interface AmazonAthenaAsyncpublic Future<DeleteDataCatalogResult> deleteDataCatalogAsync(DeleteDataCatalogRequest request, AsyncHandler<DeleteDataCatalogRequest,DeleteDataCatalogResult> asyncHandler)
AmazonAthenaAsyncDeletes a data catalog.
deleteDataCatalogAsync 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 Amazon Web Services 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 Amazon Web Services 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<DeletePreparedStatementResult> deletePreparedStatementAsync(DeletePreparedStatementRequest request)
AmazonAthenaAsyncDeletes the prepared statement with the specified name from the specified workgroup.
deletePreparedStatementAsync in interface AmazonAthenaAsyncpublic Future<DeletePreparedStatementResult> deletePreparedStatementAsync(DeletePreparedStatementRequest request, AsyncHandler<DeletePreparedStatementRequest,DeletePreparedStatementResult> asyncHandler)
AmazonAthenaAsyncDeletes the prepared statement with the specified name from the specified workgroup.
deletePreparedStatementAsync 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<GetDataCatalogResult> getDataCatalogAsync(GetDataCatalogRequest request)
AmazonAthenaAsyncReturns the specified data catalog.
getDataCatalogAsync in interface AmazonAthenaAsyncpublic Future<GetDataCatalogResult> getDataCatalogAsync(GetDataCatalogRequest request, AsyncHandler<GetDataCatalogRequest,GetDataCatalogResult> asyncHandler)
AmazonAthenaAsyncReturns the specified data catalog.
getDataCatalogAsync 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<GetDatabaseResult> getDatabaseAsync(GetDatabaseRequest request)
AmazonAthenaAsyncReturns a database object for the specified database and data catalog.
getDatabaseAsync in interface AmazonAthenaAsyncpublic Future<GetDatabaseResult> getDatabaseAsync(GetDatabaseRequest request, AsyncHandler<GetDatabaseRequest,GetDatabaseResult> asyncHandler)
AmazonAthenaAsyncReturns a database object for the specified database and data catalog.
getDatabaseAsync 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<GetPreparedStatementResult> getPreparedStatementAsync(GetPreparedStatementRequest request)
AmazonAthenaAsyncRetrieves the prepared statement with the specified name from the specified workgroup.
getPreparedStatementAsync in interface AmazonAthenaAsyncpublic Future<GetPreparedStatementResult> getPreparedStatementAsync(GetPreparedStatementRequest request, AsyncHandler<GetPreparedStatementRequest,GetPreparedStatementResult> asyncHandler)
AmazonAthenaAsyncRetrieves the prepared statement with the specified name from the specified workgroup.
getPreparedStatementAsync 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
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 AmazonAthenaAsyncpublic 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 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<GetTableMetadataResult> getTableMetadataAsync(GetTableMetadataRequest request)
AmazonAthenaAsyncReturns table metadata for the specified catalog, database, and table.
getTableMetadataAsync in interface AmazonAthenaAsyncpublic Future<GetTableMetadataResult> getTableMetadataAsync(GetTableMetadataRequest request, AsyncHandler<GetTableMetadataRequest,GetTableMetadataResult> asyncHandler)
AmazonAthenaAsyncReturns table metadata for the specified catalog, database, and table.
getTableMetadataAsync 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<ListDataCatalogsResult> listDataCatalogsAsync(ListDataCatalogsRequest request)
AmazonAthenaAsyncLists the data catalogs in the current Amazon Web Services account.
listDataCatalogsAsync in interface AmazonAthenaAsyncpublic Future<ListDataCatalogsResult> listDataCatalogsAsync(ListDataCatalogsRequest request, AsyncHandler<ListDataCatalogsRequest,ListDataCatalogsResult> asyncHandler)
AmazonAthenaAsyncLists the data catalogs in the current Amazon Web Services account.
listDataCatalogsAsync 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<ListDatabasesResult> listDatabasesAsync(ListDatabasesRequest request)
AmazonAthenaAsyncLists the databases in the specified data catalog.
listDatabasesAsync in interface AmazonAthenaAsyncpublic Future<ListDatabasesResult> listDatabasesAsync(ListDatabasesRequest request, AsyncHandler<ListDatabasesRequest,ListDatabasesResult> asyncHandler)
AmazonAthenaAsyncLists the databases in the specified data catalog.
listDatabasesAsync 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<ListEngineVersionsResult> listEngineVersionsAsync(ListEngineVersionsRequest request)
AmazonAthenaAsyncReturns a list of engine versions that are available to choose from, including the Auto option.
listEngineVersionsAsync in interface AmazonAthenaAsyncpublic Future<ListEngineVersionsResult> listEngineVersionsAsync(ListEngineVersionsRequest request, AsyncHandler<ListEngineVersionsRequest,ListEngineVersionsResult> asyncHandler)
AmazonAthenaAsyncReturns a list of engine versions that are available to choose from, including the Auto option.
listEngineVersionsAsync 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 specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.
For code samples using the Amazon Web Services 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 specified workgroup. If a workgroup is not specified, lists the saved queries for the primary workgroup.
For code samples using the Amazon Web Services 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<ListPreparedStatementsResult> listPreparedStatementsAsync(ListPreparedStatementsRequest request)
AmazonAthenaAsyncLists the prepared statements in the specfied workgroup.
listPreparedStatementsAsync in interface AmazonAthenaAsyncpublic Future<ListPreparedStatementsResult> listPreparedStatementsAsync(ListPreparedStatementsRequest request, AsyncHandler<ListPreparedStatementsRequest,ListPreparedStatementsResult> asyncHandler)
AmazonAthenaAsyncLists the prepared statements in the specfied workgroup.
listPreparedStatementsAsync 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. 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 Amazon Web Services 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. 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 Amazon Web Services 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<ListTableMetadataResult> listTableMetadataAsync(ListTableMetadataRequest request)
AmazonAthenaAsyncLists the metadata for the tables in the specified data catalog database.
listTableMetadataAsync in interface AmazonAthenaAsyncpublic Future<ListTableMetadataResult> listTableMetadataAsync(ListTableMetadataRequest request, AsyncHandler<ListTableMetadataRequest,ListTableMetadataResult> asyncHandler)
AmazonAthenaAsyncLists the metadata for the tables in the specified data catalog database.
listTableMetadataAsync 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 an Athena workgroup or data catalog resource.
listTagsForResourceAsync in interface AmazonAthenaAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonAthenaAsyncLists the tags associated with an Athena workgroup or data catalog resource.
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. Running queries against an external catalog requires GetDataCatalog permission to
the catalog. For code samples using the Amazon Web Services 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. Running queries against an external catalog requires GetDataCatalog permission to
the catalog. For code samples using the Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 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 AmazonAthenaAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonAthenaAsyncAdds 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 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 a data catalog or workgroup resource.
untagResourceAsync in interface AmazonAthenaAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonAthenaAsyncRemoves one or more tags from a data catalog or workgroup resource.
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<UpdateDataCatalogResult> updateDataCatalogAsync(UpdateDataCatalogRequest request)
AmazonAthenaAsyncUpdates the data catalog that has the specified name.
updateDataCatalogAsync in interface AmazonAthenaAsyncpublic Future<UpdateDataCatalogResult> updateDataCatalogAsync(UpdateDataCatalogRequest request, AsyncHandler<UpdateDataCatalogRequest,UpdateDataCatalogResult> asyncHandler)
AmazonAthenaAsyncUpdates the data catalog that has the specified name.
updateDataCatalogAsync 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<UpdatePreparedStatementResult> updatePreparedStatementAsync(UpdatePreparedStatementRequest request)
AmazonAthenaAsyncUpdates a prepared statement.
updatePreparedStatementAsync in interface AmazonAthenaAsyncpublic Future<UpdatePreparedStatementResult> updatePreparedStatementAsync(UpdatePreparedStatementRequest request, AsyncHandler<UpdatePreparedStatementRequest,UpdatePreparedStatementResult> asyncHandler)
AmazonAthenaAsyncUpdates a prepared statement.
updatePreparedStatementAsync 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 AmazonAthenaClient