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
ConnectionProvider
getConnection
in interface ConnectionProvider
conf
- the confSQLException
- the SQL exceptionpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.