sanjeet006py commented on code in PR #6868:
URL: https://github.com/apache/hbase/pull/6868#discussion_r2093246299


##########
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java:
##########
@@ -1033,4 +1035,14 @@ public boolean isNeedCursorResult() {
   public static Scan createScanFromCursor(Cursor cursor) {
     return new Scan().withStartRow(cursor.getRow());
   }
+
+  public Scan setEnableScanMetricsByRegion(final boolean enable) {
+    setAttribute(Scan.SCAN_ATTRIBUTES_METRICS_BY_REGION_ENABLE, 
Bytes.toBytes(enable));
+    return this;
+  }

Review Comment:
   Yeah, I wanted to do this only at first but then saw that setters in Scan 
class are returning Scan/`this` object back so, followed the same convention.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to