use of org.apache.phoenix.end2end.ConnectionQueryServicesTestImpl in project phoenix by apache.
the class PhoenixTestDriver method getConnectionQueryServices.
// public for testing
@Override
public synchronized ConnectionQueryServices getConnectionQueryServices(String url, Properties info) throws SQLException {
checkClosed();
if (connectionQueryServices != null) {
return connectionQueryServices;
}
ConnectionInfo connInfo = ConnectionInfo.create(url);
if (connInfo.isConnectionless()) {
connectionQueryServices = new ConnectionlessQueryServicesImpl(queryServices, connInfo, info);
} else {
connectionQueryServices = new ConnectionQueryServicesTestImpl(queryServices, connInfo, info);
}
connectionQueryServices.init(url, info);
return connectionQueryServices;
}
Aggregations