You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2019/04/29 20:23:26 UTC
[hbase] branch branch-2 updated: HBASE-21815 Make isTrackingMetrics
and getMetrics of ScannerContext public
This is an automated email from the ASF dual-hosted git repository.
apurtell pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 04b4c99 HBASE-21815 Make isTrackingMetrics and getMetrics of ScannerContext public
04b4c99 is described below
commit 04b4c9973ac55ae977f7d9372606535ec5a195b4
Author: chfeng <ch...@tencent.com>
AuthorDate: Thu Jan 31 21:23:10 2019 +0800
HBASE-21815 Make isTrackingMetrics and getMetrics of ScannerContext public
Signed-off-by: Andrew Purtell <ap...@apache.org>
---
.../java/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 4c5923b..4ba6913 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;
}