public ResultSet getTableTypes() throws SQLException { TGetTableTypesResp tableTypeResp; try { tableTypeResp = client.GetTableTypes(new TGetTableTypesReq(sessHandle)); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(tableTypeResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(tableTypeResp.getOperationHandle()) .build(); }
public ResultSet getTableTypes() throws SQLException { TGetTableTypesResp tableTypeResp; try { tableTypeResp = client.GetTableTypes(new TGetTableTypesReq(sessHandle)); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(tableTypeResp.getStatus()); return new HiveQueryResultSet.Builder(connection) .setClient(client) .setSessionHandle(sessHandle) .setStmtHandle(tableTypeResp.getOperationHandle()) .build(); }
@Override public OperationHandle getTableTypes(SessionHandle sessionHandle) throws HiveSQLException { try { TGetTableTypesReq req = new TGetTableTypesReq(sessionHandle.toTSessionHandle()); TGetTableTypesResp resp = cliService.GetTableTypes(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 getTableTypes(SessionHandle sessionHandle) throws HiveSQLException { try { TGetTableTypesReq req = new TGetTableTypesReq(sessionHandle.toTSessionHandle()); TGetTableTypesResp resp = cliService.GetTableTypes(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 getTableTypes(SessionHandle sessionHandle) throws HiveSQLException { try { TGetTableTypesReq req = new TGetTableTypesReq(sessionHandle.toTSessionHandle()); TGetTableTypesResp resp = cliService.GetTableTypes(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 getTableTypes(SessionHandle sessionHandle) throws HiveSQLException { try { TGetTableTypesReq req = new TGetTableTypesReq(sessionHandle.toTSessionHandle()); TGetTableTypesResp resp = cliService.GetTableTypes(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 GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException { GetTableTypes_result result = new GetTableTypes_result(); result.success = iface.GetTableTypes(args.req); return result; } }
public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException { GetTableTypes_result result = new GetTableTypes_result(); result.success = iface.GetTableTypes(args.req); return result; } }
public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException { GetTableTypes_result result = new GetTableTypes_result(); result.success = iface.GetTableTypes(args.req); return result; } }
public GetTableTypes_result getResult(I iface, GetTableTypes_args args) throws org.apache.thrift.TException { GetTableTypes_result result = new GetTableTypes_result(); result.success = iface.GetTableTypes(args.req); return result; } }