From 729072e8ef988d657c468129b70abd63f8f49867 Mon Sep 17 00:00:00 2001 From: chfeng Date: Thu, 31 Jan 2019 21:23:10 +0800 Subject: [PATCH] HBASE-21815 Make isTrackingMetrics and getMetrics of ScannerContext public Signed-off-by: Andrew Purtell --- .../org/apache/hadoop/hbase/regionserver/ScannerContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cc6ec84f0a3..04eabb109ea 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; }