You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2018/06/12 22:31:18 UTC

[GitHub] ctubbsii commented on a change in pull request #524: Add end row to Volume Chooser environment to enable decisions based on tablet

ctubbsii commented on a change in pull request #524: Add end row to Volume Chooser environment to enable decisions based on tablet
URL: https://github.com/apache/accumulo/pull/524#discussion_r194908550
 
 

 ##########
 File path: server/base/src/main/java/org/apache/accumulo/server/fs/VolumeChooserEnvironment.java
 ##########
 @@ -33,15 +34,29 @@
 
   private final ChooserScope scope;
   private final Table.ID tableId;
+  private final Text endRow;
 
   public VolumeChooserEnvironment(ChooserScope scope) {
     this.scope = Objects.requireNonNull(scope);
     this.tableId = null;
+    endRow = null;
   }
 
   public VolumeChooserEnvironment(Table.ID tableId) {
     this.scope = ChooserScope.TABLE;
     this.tableId = Objects.requireNonNull(tableId);
+    endRow = null;
+  }
+
+  public VolumeChooserEnvironment(Table.ID tableId, Text endRow) {
 
 Review comment:
   Instead of just passing in the endRow, we could pass in a `TabletId` (`new TabletIdImpl(extent)`).
   This would also cover the tableId, but for some reason that interface returns table IDs as a Text instead of the more convenient String (table IDs are always human readable). I wouldn't want to force people to convert to convert from Text to String to Table.ID, so I would probably leave that alone for now, and just add the extent as a `TabletId` public API type.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services