private void incrementCountOfRowsScannedMetric(ScannerContext scannerContext) {
    if (scannerContext == null || !scannerContext.isTrackingMetrics()) {
      return;
    }

    scannerContext.getMetrics().countOfRowsScanned.incrementAndGet();
  }
Returns True if a filter rules the scanner is over, done.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RegionScannerImpl.java