Class PhoenixDataSource
java.lang.Object
org.apache.drill.exec.store.phoenix.PhoenixDataSource
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
Phoenix’s Connection objects are different from most other JDBC Connections
due to the underlying HBase connection. The Phoenix Connection object
is designed to be a thin object that is inexpensive to create.
If Phoenix Connections are reused, it is possible that the underlying HBase connection is not always left in a healthy state by the previous user. It is better to create new Phoenix Connections to ensure that you avoid any potential issues.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(String userName, String password) int
boolean
isWrapperFor
(Class<?> iface) void
setLoginTimeout
(int seconds) void
setLogWriter
(PrintWriter out) <T> T
-
Constructor Details
-
PhoenixDataSource
-
PhoenixDataSource
-
-
Method Details
-
getConnectionProperties
-
getLogWriter
- Specified by:
getLogWriter
in interfaceCommonDataSource
-
setLogWriter
- Specified by:
setLogWriter
in interfaceCommonDataSource
-
setLoginTimeout
public void setLoginTimeout(int seconds) - Specified by:
setLoginTimeout
in interfaceCommonDataSource
-
getLoginTimeout
public int getLoginTimeout()- Specified by:
getLoginTimeout
in interfaceCommonDataSource
-
getParentLogger
- Specified by:
getParentLogger
in interfaceCommonDataSource
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDataSource
- Throws:
SQLException
-