@Override public void cancel() throws SQLException { checkConnection("cancel"); if (isCancelled) { return; } transportLock.lock(); try { if (stmtHandle != null) { TCancelOperationReq cancelReq = new TCancelOperationReq(stmtHandle); TCancelOperationResp cancelResp = client.CancelOperation(cancelReq); Utils.verifySuccessWithInfo(cancelResp.getStatus()); } } catch (SQLException e) { throw e; } catch (Exception e) { throw new SQLException(e.toString(), "08S01", e); } finally { transportLock.unlock(); } isCancelled = true; }
@Override public void cancel() throws SQLException { checkConnection("cancel"); if (isCancelled) { return; } transportLock.lock(); try { if (stmtHandle != null) { TCancelOperationReq cancelReq = new TCancelOperationReq(stmtHandle); TCancelOperationResp cancelResp = client.CancelOperation(cancelReq); Utils.verifySuccessWithInfo(cancelResp.getStatus()); } } catch (SQLException e) { throw e; } catch (Exception e) { throw new SQLException(e.toString(), "08S01", e); } finally { transportLock.unlock(); } isCancelled = true; }
public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException { CancelOperation_result result = new CancelOperation_result(); result.success = iface.CancelOperation(args.req); return result; } }
public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException { CancelOperation_result result = new CancelOperation_result(); result.success = iface.CancelOperation(args.req); return result; } }
@Override public void cancelOperation(OperationHandle opHandle) throws HiveSQLException { try { TCancelOperationReq req = new TCancelOperationReq(opHandle.toTOperationHandle()); TCancelOperationResp resp = cliService.CancelOperation(req); checkStatus(resp.getStatus()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException { CancelOperation_result result = new CancelOperation_result(); result.success = iface.CancelOperation(args.req); return result; } }
@Override public void cancelOperation(OperationHandle opHandle) throws HiveSQLException { try { TCancelOperationReq req = new TCancelOperationReq(opHandle.toTOperationHandle()); TCancelOperationResp resp = cliService.CancelOperation(req); checkStatus(resp.getStatus()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
public CancelOperation_result getResult(I iface, CancelOperation_args args) throws org.apache.thrift.TException { CancelOperation_result result = new CancelOperation_result(); result.success = iface.CancelOperation(args.req); return result; } }
@Override public void cancelOperation(OperationHandle opHandle) throws HiveSQLException { try { TCancelOperationReq req = new TCancelOperationReq(opHandle.toTOperationHandle()); TCancelOperationResp resp = cliService.CancelOperation(req); checkStatus(resp.getStatus()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public void cancelOperation(OperationHandle opHandle) throws HiveSQLException { try { TCancelOperationReq req = new TCancelOperationReq(opHandle.toTOperationHandle()); TCancelOperationResp resp = cliService.CancelOperation(req); checkStatus(resp.getStatus()); } catch (HiveSQLException e) { throw e; } catch (Exception e) { throw new HiveSQLException(e); } }