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 2019/06/14 17:24:19 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1206: Fix #1181 Update MasterMetadataUtil to use new Ample api

ctubbsii commented on a change in pull request #1206: Fix #1181 Update MasterMetadataUtil to use new Ample api
URL: https://github.com/apache/accumulo/pull/1206#discussion_r293904397
 
 

 ##########
 File path: server/base/src/main/java/org/apache/accumulo/server/metadata/TabletMutatorBase.java
 ##########
 @@ -95,6 +95,21 @@ protected TabletMutatorBase(ServerContext ctx, KeyExtent extent) {
     return this;
   }
 
+  @Override
+  public Ample.TabletMutator putFlushId(long flushId) {
+    Preconditions.checkState(updatesEnabled, "Cannot make updates after calling mutate.");
+    TabletsSection.ServerColumnFamily.FLUSH_COLUMN.put(mutation,
+        new Value(("" + flushId).getBytes()));
+    return this;
+  }
+
+  @Override
+  public Ample.TabletMutator putTime(String time) {
+    Preconditions.checkState(updatesEnabled, "Cannot make updates after calling mutate.");
+    TabletsSection.ServerColumnFamily.TIME_COLUMN.put(mutation, new Value(time.getBytes()));
 
 Review comment:
   :+1: For these, I like to do a static import of `StandardCharsets.UTF_8`, so you can just do `.getBytes(UTF_8)`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services