public class DataSourceConnectionProvider extends Object implements ConnectionProvider
| Constructor and Description |
|---|
DataSourceConnectionProvider()
Instantiates a new data source connection provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
getConnection(org.apache.hadoop.conf.Configuration conf)
Gets the connection.
|
org.apache.lens.driver.jdbc.DataSourceConnectionProvider.DriverConfig |
getDriverConfigfromConf(org.apache.hadoop.conf.Configuration conf)
Gets the driver configfrom conf.
|
public DataSourceConnectionProvider()
public org.apache.lens.driver.jdbc.DataSourceConnectionProvider.DriverConfig getDriverConfigfromConf(org.apache.hadoop.conf.Configuration conf)
conf - the confpublic Connection getConnection(org.apache.hadoop.conf.Configuration conf) throws SQLException
ConnectionProvidergetConnection in interface ConnectionProviderconf - the confSQLException - the SQL exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.