@Override public Result get(Get get) throws IOException { DResult res = table.coprocessorProxy(DominoIface.class, get.getRow()).get( get, startId); if (res.getErrMsg() != null) { throw new IOException(res.getErrMsg()); } return res.getResult(); }
public Result get(Get get, HTableInterface table) throws IOException { checkIfReadyToContinue(); try { DominoIface iface = table.coprocessorProxy(DominoIface.class, get.getRow()); DResult res = iface.get(get, startId); if (res.getErrMsg() != null) { throw new IOException(res.getErrMsg()); } return res.getResult(); } catch (IOException e) { readyToCommit = false; throw e; } catch (Throwable t) { readyToCommit = false; throw new IOException(t); } }
public Result get(Get get, HTableInterface table) throws IOException { checkIfReadyToContinue(); try { DominoIface iface = table.coprocessorProxy(DominoIface.class, get.getRow()); DResult res = iface.get(get, startId); if (res.getErrMsg() != null) { throw new IOException(res.getErrMsg()); } return res.getResult(); } catch (IOException e) { disable(); throw e; } catch (Throwable t) { disable(); throw new IOException(t); } }