|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lens.driver.jdbc.DataSourceConnectionProvider
public class DataSourceConnectionProvider
The Class DataSourceConnectionProvider.
Field Summary | |
---|---|
static org.apache.log4j.Logger |
LOG
The Constant LOG. |
Constructor Summary | |
---|---|
DataSourceConnectionProvider()
Instantiates a new data source connection provider. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.log4j.Logger LOG
Constructor Detail |
---|
public DataSourceConnectionProvider()
Method Detail |
---|
public org.apache.lens.driver.jdbc.DataSourceConnectionProvider.DriverConfig getDriverConfigfromConf(org.apache.hadoop.conf.Configuration conf)
conf
- the conf
public Connection getConnection(org.apache.hadoop.conf.Configuration conf) throws SQLException
ConnectionProvider
getConnection
in interface ConnectionProvider
conf
- the conf
SQLException
- the SQL exceptionpublic void close() throws IOException
close
in interface Closeable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |