public Scan setScanMetricsEnabled(final boolean enabled) {
    setAttribute(Scan.SCAN_ATTRIBUTES_METRICS_ENABLE, Bytes.toBytes(Boolean.valueOf(enabled)));
    return this;
  }
Enable collection of {@link ScanMetrics}. For advanced users.
@param enabled Set to true to enable accumulating scan metrics
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java