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