@Override public void close() { try { lock.lock(); super.close(); closed = true; notFull.signalAll(); notEmpty.signalAll(); } finally { lock.unlock(); } }
@Override protected ScannerCallable createScannerCallable() { if (!scan.includeStartRow() && !isEmptyStartRow(scan.getStartRow())) { // we have not implemented locate to next row for sync client yet, so here we change the // inclusive of start row to true. scan.withStartRow(createClosestRowAfter(scan.getStartRow()), true); } return new ScannerCallable(getConnection(), getTable(), scan, this.scanMetrics, this.rpcControllerFactory); } }
@Override protected boolean moveToNextRegion() { if (!initialized) { initialized = true; return super.moveToNextRegion(); } if (!rpcFinished) { return super.moveToNextRegion(); } // Enforce that we don't short-circuit more than once if (rpcFinishedFired) { throw new RuntimeException("Expected nextScanner to only be called once after " + " short-circuit was triggered."); } rpcFinishedFired = true; return false; }
pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan()); } else { return new ClientSimpleScanner(getConfiguration(), scan, getName(), this.connection, this.rpcCallerFactory, this.rpcControllerFactory, pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan());
pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan()); } else { return new ClientSimpleScanner(getConfiguration(), scan, getName(), this.connection, this.rpcCallerFactory, this.rpcControllerFactory, pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan());
@Override protected ScannerCallable createScannerCallable() { if (!scan.includeStartRow() && !isEmptyStartRow(scan.getStartRow())) { // we have not implemented locate to next row for sync client yet, so here we change the // inclusive of start row to true. scan.withStartRow(createClosestRowAfter(scan.getStartRow()), true); } return new ScannerCallable(getConnection(), getTable(), scan, this.scanMetrics, this.rpcControllerFactory); } }
@Override public void close() { try { lock.lock(); super.close(); closed = true; notFull.signalAll(); notEmpty.signalAll(); } finally { lock.unlock(); } }
pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan()); } else { return new ClientSimpleScanner(getConfiguration(), scan, getName(), this.connection, this.rpcCallerFactory, this.rpcControllerFactory, pool, connConfiguration.getReplicaCallTimeoutMicroSecondScan());
@Override protected boolean moveToNextRegion() { if (!initialized) { initialized = true; return super.moveToNextRegion(); } if (!rpcFinished) { return super.moveToNextRegion(); } // Enforce that we don't short-circuit more than once if (rpcFinishedFired) { throw new RuntimeException("Expected nextScanner to only be called once after " + " short-circuit was triggered."); } rpcFinishedFired = true; return false; }
@Override protected ScannerCallable createScannerCallable() { if (!scan.includeStartRow() && !isEmptyStartRow(scan.getStartRow())) { // we have not implemented locate to next row for sync client yet, so here we change the // inclusive of start row to true. scan.withStartRow(createClosestRowAfter(scan.getStartRow()), true); } return new ScannerCallable(getConnection(), getTable(), scan, this.scanMetrics, this.rpcControllerFactory); } }
@Override public void close() { try { lock.lock(); super.close(); closed = true; notFull.signalAll(); notEmpty.signalAll(); } finally { lock.unlock(); } }