You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2020/03/22 16:29:43 UTC

[GitHub] [hbase] HorizonNet commented on a change in pull request #1320: HBASE-8458 Support for batch version of checkAndPut() and checkAndDel…

HorizonNet commented on a change in pull request #1320: HBASE-8458 Support for batch version of checkAndPut() and checkAndDel…
URL: https://github.com/apache/hbase/pull/1320#discussion_r396111881
 
 

 ##########
 File path: hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java
 ##########
 @@ -410,6 +411,17 @@ default CheckAndMutateWithFilterBuilder checkAndMutate(byte[] row, Filter filter
     boolean thenMutate(RowMutations mutation) throws IOException;
   }
 
+  /**
+   * Batch checkAndMutate the specified data into the table.
+   *
+   * @param checkAndMutates The list of rows to apply.
+   * @return A array of boolean that represent the result for each CheckAndMutate.
+   * @throws IOException if a remote or network exception occurs.
+   */
+  default boolean[] checkAndMutate(List<CheckAndMutate> checkAndMutates) throws IOException {
+    throw new NotImplementedException("Add an implementation!");
 
 Review comment:
   Would a `UnsupportedOperationException` be a better fit?

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