HBASE-21815 Make isTrackingMetrics and getMetrics of ScannerContext public
Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
parent
c3e490f75c
commit
04b4c9973a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue