saintstack 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_r397613862
##########
File path:
hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncTable.java
##########
@@ -344,6 +345,26 @@ default CheckAndMutateBuilder ifEquals(byte[] value) {
CompletableFuture<Boolean> thenMutate(RowMutations mutation);
}
+ /**
+ * Batch checkAndMutates the specified data into the table.
+ *
+ * @param checkAndMutates The list of rows to apply.
+ * @return A list of {@link CompletableFuture}s that represent the result
for each
+ * CheckAndMutate.
+ */
+ List<CompletableFuture<Boolean>> checkAndMutate(List<CheckAndMutate>
checkAndMutates);
+
+ /**
+ * A simple version of batch checkAndMutate. It will fail if there are any
failures.
+ *
+ * @param checkAndMutates The list of rows to apply.
+ * @return A {@link CompletableFuture} that wrapper the result boolean list.
+ */
+ default CompletableFuture<List<Boolean>> checkAndMutateAll(
Review comment:
Why would we offer this api?
----------------------------------------------------------------
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