Code samples
The examples in this topic use SDK for Java 2.x as a starting point for writing Athena applications.
Note
For information about programming Athena using other language-specific Amazon SDKs, see the following resources:
-
Amazon Command Line Interface (
athena
) -
Amazon SDK for .NET (
Amazon.Athena.Model
) -
Amazon SDK for C++ (
Aws::Athena::AthenaClient
) -
Amazon SDK for Go (
athena
) -
Amazon SDK for JavaScript v3 (
AthenaClient
) -
Amazon SDK for PHP 3.x (
Aws\Athena
) -
Amazon SDK for Python (Boto3) (
Athena.Client
) -
Amazon SDK for Ruby v3 (
Aws::Athena::Client
)
For more information about running the Java code examples in this section, see the Amazon Athena Java readme
Note
These samples use constants (for example, ATHENA_SAMPLE_QUERY
) for
strings, which are defined in an ExampleConstants.java
class declaration.
Replace these constants with your own strings or defined constants.