hkeebler 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_r294415530
 
 

 ##########
 File path: 
server/base/src/main/java/org/apache/accumulo/server/metadata/TabletMutatorBase.java
 ##########
 @@ -151,6 +166,20 @@ private String getLocationFamily(LocationType type) {
     return this;
   }
 
+  @Override
+  public Ample.TabletMutator putBulkFile(Ample.FileMeta bulkref, long tid) {
+    Preconditions.checkState(updatesEnabled, "Cannot make updates after 
calling mutate.");
+    Value tidBytes = new Value(Long.toString(tid).getBytes());
+    mutation.put(TabletsSection.BulkFileColumnFamily.NAME, bulkref.meta(), 
tidBytes);
+    return this;
+  }
+
+  // not sure what to do here yet
+  @Override
+  public Ample.TabletMutator deleteBulkFile(Ample.FileMeta bulkref) {
+    throw new UnsupportedOperationException();
 
 Review comment:
   Added this although nothing out there uses it at this time.

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


With regards,
Apache Git Services

Reply via email to