Class ImpalaJdbcConnectionFactory
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.connection.GenericJdbcConnectionFactory
-
- com.amazonaws.athena.connectors.cloudera.ImpalaJdbcConnectionFactory
-
- All Implemented Interfaces:
JdbcConnectionFactory
public class ImpalaJdbcConnectionFactory extends GenericJdbcConnectionFactory
-
-
Field Summary
-
Fields inherited from class com.amazonaws.athena.connectors.jdbc.connection.GenericJdbcConnectionFactory
SECRET_NAME_PATTERN
-
-
Constructor Summary
Constructors Constructor Description ImpalaJdbcConnectionFactory(DatabaseConnectionConfig databaseConnectionConfig, Map<String,String> properties, DatabaseConnectionInfo databaseConnectionInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection(CredentialsProvider credentialsProvider)Retrieves database connection for a database type.
-
-
-
Constructor Detail
-
ImpalaJdbcConnectionFactory
public ImpalaJdbcConnectionFactory(DatabaseConnectionConfig databaseConnectionConfig, Map<String,String> properties, DatabaseConnectionInfo databaseConnectionInfo)
- Parameters:
databaseConnectionConfig- database connection configurationDatabaseConnectionConfigproperties- JDBC connection properties.databaseConnectionInfo- Contains JDBC driver and default port details.
-
-
Method Detail
-
getConnection
public Connection getConnection(CredentialsProvider credentialsProvider)
Description copied from interface:JdbcConnectionFactoryRetrieves database connection for a database type.- Specified by:
getConnectionin interfaceJdbcConnectionFactory- Overrides:
getConnectionin classGenericJdbcConnectionFactory- Parameters:
credentialsProvider- jdbc user and password provider.- Returns:
- JDBC connection. See
Connection.
-
-