public String toString() { return "Scanner$Response(scanner_id=" + Bytes.hex(scanner_id) + ", rows=" + rows + ", more=" + more + ", scannerClosedOnServer=" + scannerClosedOnServer +")"; } }
public String toString() { return "auto-close scanner " + Bytes.hex(scanner_id); } });
public String toString() { return "GetNextRowsRequest(scanner_id=" + Bytes.hex(scanner_id) + ", max_num_rows=" + max_num_rows + ", region=" + region + ", attempt=" + attempt + ')'; }
public String toString() { return "CloseScannerRequest(scanner_id=" + Bytes.hex(scanner_id) + ", attempt=" + attempt + ')'; }
public Object call(final Object arg) { if(LOG.isDebugEnabled()) { LOG.debug("Scanner " + Bytes.hex(old_scanner_id) + " closed on " + old_region); } return arg; }
public Object call(Object arg) { if (arg instanceof Exception) { final Exception error = (Exception) arg; // NotServingRegionException: // If the region isn't serving, then our scanner is already broken // somehow, because while it's open it holds a read lock on the // region, which prevents it from splitting (among other things). // So if we get this error, our scanner is already dead anyway. // UnknownScannerException: // If this region doesn't know anything about this scanner then we // don't have anything to do to close it! if (error instanceof NotServingRegionException || error instanceof UnknownScannerException) { if (LOG.isDebugEnabled()) { LOG.debug("Ignoring exception when closing " + Scanner.this, error); } arg = null; // Clear the error. } // else: the `return arg' below will propagate the error. } else if (LOG.isDebugEnabled()) { LOG.debug("Scanner " + Bytes.hex(scanner_id) + " closed on " + region); } region = DONE; scanner_id = 0xDEAD000CC000DEADL; // Make debugging easier. return arg; } public String toString() {
public Deferred<ArrayList<ArrayList<KeyValue>>> call(final Object arg) { final Response resp; if (arg instanceof Long) { scanner_id = (Long) arg; resp = null; } else if (arg instanceof Response) { resp = (Response) arg; scanner_id = resp.scanner_id; scannerClosedOnServer = resp.scannerClosedOnServer; moreRows = resp.more; } else { throw new IllegalStateException("WTF? Scanner open callback" + " invoked with impossible" + " argument: " + arg); } if (LOG.isDebugEnabled()) { LOG.debug("Scanner " + Bytes.hex(scanner_id) + " opened on " + region); } if (resp != null) { if (resp.rows == null) { return scanFinished(!resp.more); } return Deferred.fromResult(resp.rows); } return nextRows(); // Restart the call. } public String toString() {
.append(", region=").append(region) .append(", filter=").append(filter) .append(", scanner_id=").append(Bytes.hex(scanner_id))
final RegionInfo old_region = region; if(LOG.isDebugEnabled()) { LOG.debug("Scanner " + Bytes.hex(old_scanner_id) + " done scanning " + old_region);