public class PhoenixDataSource extends Object implements DataSource
Constructor and Description |
---|
PhoenixDataSource(String host,
int port,
String userName,
Map<String,Object> connectionProperties,
boolean impersonationEnabled) |
PhoenixDataSource(String url,
String userName,
Map<String,Object> connectionProperties,
boolean impersonationEnabled) |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection() |
Connection |
getConnection(String userName,
String password) |
Map<String,Object> |
getConnectionProperties() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setConnectionProperties(Map<String,Object> connectionProperties) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
Class<?> |
useDriverClass()
The thin-client is lightweight and better compatibility.
|
public PhoenixDataSource(String url, String userName, Map<String,Object> connectionProperties, boolean impersonationEnabled)
public void setConnectionProperties(Map<String,Object> connectionProperties)
public PrintWriter getLogWriter()
getLogWriter
in interface CommonDataSource
public void setLogWriter(PrintWriter out)
setLogWriter
in interface CommonDataSource
public void setLoginTimeout(int seconds)
setLoginTimeout
in interface CommonDataSource
public int getLoginTimeout()
getLoginTimeout
in interface CommonDataSource
public Logger getParentLogger()
getParentLogger
in interface CommonDataSource
public <T> T unwrap(Class<T> iface) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> iface)
isWrapperFor
in interface Wrapper
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String userName, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public Class<?> useDriverClass() throws SQLException
SQLException
Copyright © 1970 The Apache Software Foundation. All rights reserved.