public ResultSet getCatalogs() throws SQLException { TGetCatalogsResp catalogResp; try { catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle)); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(catalogResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(catalogResp.getOperationHandle()) .build(); }
public ResultSet getCatalogs() throws SQLException { TGetCatalogsResp catalogResp; try { catalogResp = client.GetCatalogs(new TGetCatalogsReq(sessHandle)); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(catalogResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(catalogResp.getOperationHandle()) .build(); }
@Override public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException { try { TGetCatalogsReq req = new TGetCatalogsReq(sessionHandle.toTSessionHandle()); TGetCatalogsResp resp = cliService.GetCatalogs(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException { try { TGetCatalogsReq req = new TGetCatalogsReq(sessionHandle.toTSessionHandle()); TGetCatalogsResp resp = cliService.GetCatalogs(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException { try { TGetCatalogsReq req = new TGetCatalogsReq(sessionHandle.toTSessionHandle()); TGetCatalogsResp resp = cliService.GetCatalogs(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public OperationHandle getCatalogs(SessionHandle sessionHandle) throws HiveSQLException { try { TGetCatalogsReq req = new TGetCatalogsReq(sessionHandle.toTSessionHandle()); TGetCatalogsResp resp = cliService.GetCatalogs(req); checkStatus(resp.getStatus()); TProtocolVersion protocol = sessionHandle.getProtocolVersion(); return new OperationHandle(resp.getOperationHandle(), protocol); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException { GetCatalogs_result result = new GetCatalogs_result(); result.success = iface.GetCatalogs(args.req); return result; } }
public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException { GetCatalogs_result result = new GetCatalogs_result(); result.success = iface.GetCatalogs(args.req); return result; } }
public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException { GetCatalogs_result result = new GetCatalogs_result(); result.success = iface.GetCatalogs(args.req); return result; } }
public GetCatalogs_result getResult(I iface, GetCatalogs_args args) throws org.apache.thrift.TException { GetCatalogs_result result = new GetCatalogs_result(); result.success = iface.GetCatalogs(args.req); return result; } }