private TGetInfoResp getServerInfo(TGetInfoType type) throws SQLException { TGetInfoReq req = new TGetInfoReq(sessHandle, type); TGetInfoResp resp; try { resp = client.GetInfo(req); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(resp.getStatus()); return resp; } }
private TGetInfoResp getServerInfo(TGetInfoType type) throws SQLException { TGetInfoReq req = new TGetInfoReq(sessHandle, type); TGetInfoResp resp; try { resp = client.GetInfo(req); } catch (TException e) { throw new SQLException(e.getMessage(), "08S01", e); } Utils.verifySuccess(resp.getStatus()); return resp; } }
@Override public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException { try { // FIXME extract the right info type TGetInfoReq req = new TGetInfoReq(sessionHandle.toTSessionHandle(), infoType.toTGetInfoType()); TGetInfoResp resp = cliService.GetInfo(req); checkStatus(resp.getStatus()); return new GetInfoValue(resp.getInfoValue()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException { try { // FIXME extract the right info type TGetInfoReq req = new TGetInfoReq(sessionHandle.toTSessionHandle(), infoType.toTGetInfoType()); TGetInfoResp resp = cliService.GetInfo(req); checkStatus(resp.getStatus()); return new GetInfoValue(resp.getInfoValue()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException { try { // FIXME extract the right info type TGetInfoReq req = new TGetInfoReq(sessionHandle.toTSessionHandle(), infoType.toTGetInfoType()); TGetInfoResp resp = cliService.GetInfo(req); checkStatus(resp.getStatus()); return new GetInfoValue(resp.getInfoValue()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public GetInfoValue getInfo(SessionHandle sessionHandle, GetInfoType infoType) throws HiveSQLException { try { // FIXME extract the right info type TGetInfoReq req = new TGetInfoReq(sessionHandle.toTSessionHandle(), infoType.toTGetInfoType()); TGetInfoResp resp = cliService.GetInfo(req); checkStatus(resp.getStatus()); return new GetInfoValue(resp.getInfoValue()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException { GetInfo_result result = new GetInfo_result(); result.success = iface.GetInfo(args.req); return result; } }
public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException { GetInfo_result result = new GetInfo_result(); result.success = iface.GetInfo(args.req); return result; } }
public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException { GetInfo_result result = new GetInfo_result(); result.success = iface.GetInfo(args.req); return result; } }
public GetInfo_result getResult(I iface, GetInfo_args args) throws org.apache.thrift.TException { GetInfo_result result = new GetInfo_result(); result.success = iface.GetInfo(args.req); return result; } }