diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ScannerContext.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ScannerContext.java index 4c5923beecb..4ba69130f13 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ScannerContext.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/ScannerContext.java @@ -124,7 +124,7 @@ public class ScannerContext { this.metrics = trackMetrics ? new ServerSideScanMetrics() : null; } - boolean isTrackingMetrics() { + public boolean isTrackingMetrics() { return this.metrics != null; } @@ -133,7 +133,7 @@ public class ScannerContext { * has been made to confirm that metrics are indeed being tracked. * @return {@link ServerSideScanMetrics} instance that is tracking metrics for this scan */ - ServerSideScanMetrics getMetrics() { + public ServerSideScanMetrics getMetrics() { assert isTrackingMetrics(); return this.metrics; }