@Override public Result call(int callTimeout) throws IOException { PayloadCarryingRpcController controller = rpcControllerFactory.newController(); controller.setPriority(tableName); controller.setCallTimeout(callTimeout); ClientProtos.GetRequest request = RequestConverter.buildGetRowOrBeforeRequest( getLocation().getRegionInfo().getRegionName(), row, family); try { ClientProtos.GetResponse response = getStub().get(controller, request); if (!response.hasResult()) return null; return ProtobufUtil.toResult(response.getResult()); } catch (ServiceException se) { throw ProtobufUtil.getRemoteException(se); } } };
@Override protected SingleResponse rpcCall() throws Exception { MutateRequest request = RequestConverter.buildMutateRequest( getLocation().getRegionInfo().getRegionName(), delete); MutateResponse response = doMutate(request); return ResponseConverter.getResult(request, response, getRpcControllerCellScanner()); } };
/** * {@inheritDoc} */ @Override public Result getRowOrBefore(final byte[] row, final byte[] family) throws IOException { return new ServerCallable<Result>(connection, tableName, row, operationTimeout) { public Result call() throws IOException { return server.getClosestRowBefore(location.getRegionInfo().getRegionName(), row, family); } }.withRetries(); }
@Override protected Void rpcCall() throws Exception { MutateRequest request = RequestConverter .buildMutateRequest(getLocation().getRegionInfo().getRegionName(), delete); doMutate(request); return null; } };
@Override protected Void rpcCall() throws Exception { MutateRequest request = RequestConverter .buildMutateRequest(getLocation().getRegionInfo().getRegionName(), delete); doMutate(request); return null; } };