private void close() { if (this.scannerId == -1L) { return; } try { incRPCcallsMetrics(); this.server.close(this.scannerId); } catch (IOException e) { LOG.warn("Ignore, probably already closed", e); } this.scannerId = -1L; }
protected long openScanner() throws IOException { incRPCcallsMetrics(); long id = this.server.openScanner(this.location.getRegionInfo().getRegionName(), this.scan); if (logScannerActivity) { LOG.info("Open scanner=" + id + " for scan=" + scan.toString() + " on region " + this.location.toString() + " ip:" + this.location.getServerAddress().getBindAddress()); } return id; }
private void close() { if (this.scannerId == -1L) { return; } try { incRPCcallsMetrics(); ScanRequest request = RequestConverter.buildScanRequest(this.scannerId, 0, true, this.scanMetrics != null); try { getStub().scan(null, request); } catch (ServiceException se) { throw ProtobufUtil.getRemoteException(se); } } catch (IOException e) { LOG.warn("Ignore, probably already closed", e); } this.scannerId = -1L; }
Result [] rrs = null; try { incRPCcallsMetrics(); long timestamp = System.currentTimeMillis(); rrs = server.next(scannerId, caching);
protected long openScanner() throws IOException { incRPCcallsMetrics(); ScanRequest request = RequestConverter.buildScanRequest( getLocation().getRegionInfo().getRegionName(), this.scan, 0, false); try { ScanResponse response = getStub().scan(null, request); long id = response.getScannerId(); if (logScannerActivity) { LOG.info("Open scanner=" + id + " for scan=" + scan.toString() + " on region " + getLocation().toString()); } return id; } catch (ServiceException se) { throw ProtobufUtil.getRemoteException(se); } }
incRPCcallsMetrics(); request = RequestConverter.buildScanRequest(scannerId, caching, false, nextCallSeq,