Search in sources :

Example 1 with ConnectionQueryServicesTestImpl

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;
}
Also used : ConnectionlessQueryServicesImpl(org.apache.phoenix.query.ConnectionlessQueryServicesImpl) ConnectionQueryServicesTestImpl(org.apache.phoenix.end2end.ConnectionQueryServicesTestImpl)

Aggregations

ConnectionQueryServicesTestImpl (org.apache.phoenix.end2end.ConnectionQueryServicesTestImpl)1 ConnectionlessQueryServicesImpl (org.apache.phoenix.query.ConnectionlessQueryServicesImpl)1