@Immutable public abstract class PhoenixEmbeddedDriver extends Object implements Driver, SQLCloseable
Modifier and Type | Class and Description |
---|---|
static class |
PhoenixEmbeddedDriver.ConnectionInfo
Class to encapsulate connection info for HBase
|
Modifier and Type | Field and Description |
---|---|
static ReadOnlyProps |
DEFAULT_PROPS |
static String |
DRIVER_NAME_PROP |
static String |
MAJOR_VERSION_PROP |
static String |
MINOR_VERSION_PROP |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsURL(String url) |
void |
close() |
Connection |
connect(String url,
Properties info) |
protected Connection |
createConnection(String url,
Properties info) |
protected abstract ConnectionQueryServices |
getConnectionQueryServices(String url,
Properties info)
Get or create if necessary a QueryServices that is associated with the HBase zookeeper quorum
name (part of the connection URL).
|
protected ReadOnlyProps |
getDefaultProps() |
int |
getMajorVersion() |
int |
getMinorVersion() |
Logger |
getParentLogger() |
DriverPropertyInfo[] |
getPropertyInfo(String url,
Properties info) |
abstract QueryServices |
getQueryServices() |
static boolean |
isTestUrl(String url) |
boolean |
jdbcCompliant() |
public static final String MAJOR_VERSION_PROP
public static final String MINOR_VERSION_PROP
public static final String DRIVER_NAME_PROP
public static final ReadOnlyProps DEFAULT_PROPS
protected ReadOnlyProps getDefaultProps()
public abstract QueryServices getQueryServices() throws SQLException
SQLException
public boolean acceptsURL(String url) throws SQLException
acceptsURL
in interface Driver
SQLException
public Connection connect(String url, Properties info) throws SQLException
connect
in interface Driver
SQLException
protected final Connection createConnection(String url, Properties info) throws SQLException
SQLException
protected abstract ConnectionQueryServices getConnectionQueryServices(String url, Properties info) throws SQLException
url
- connection URLinfo
- connection propertiesSQLException
public int getMajorVersion()
getMajorVersion
in interface Driver
public int getMinorVersion()
getMinorVersion
in interface Driver
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
getPropertyInfo
in interface Driver
SQLException
public boolean jdbcCompliant()
jdbcCompliant
in interface Driver
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface Driver
SQLFeatureNotSupportedException
public void close() throws SQLException
close
in interface SQLCloseable
SQLException
public static boolean isTestUrl(String url)
Copyright © 2019 Apache Software Foundation. All Rights Reserved.