brianloss commented on a change in pull request #1891:
URL: https://github.com/apache/accumulo/pull/1891#discussion_r568116718



##########
File path: 
core/src/main/java/org/apache/accumulo/core/dataImpl/TabletIdImpl.java
##########
@@ -73,4 +80,16 @@ public String toString() {
   public Range toRange() {
     return ke.toDataRange();
   }
+
+  public KeyExtent toKeyExtent() {
+    return ke;
+  }
+
+  public static KeyExtent toKeyExtent(TabletId tabletId) {
+    if (tabletId instanceof TabletIdImpl) {
+      return ((TabletIdImpl) tabletId).toKeyExtent();
+    } else {
+      return new KeyExtent(tabletId.getTable(), tabletId.getEndRow(), 
tabletId.getPrevEndRow());
+    }
+  }

Review comment:
       Ok, I'll push that in the next commit.




----------------------------------------------------------------
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.

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


Reply via email to