/** * A simple version for batch get. It will fail if there are any failures and you will get the * whole result list at once if the operation is succeeded. * @param gets The objects that specify what data to fetch and from which rows. * @return A {@link CompletableFuture} that wrapper the result list. */ default CompletableFuture<List<Result>> getAll(List<Get> gets) { return allOf(get(gets)); }
/** * A simple version of batch. It will fail if there are any failures and you will get the whole * result list at once if the operation is succeeded. * @param actions list of Get, Put, Delete, Increment, Append and RowMutations objects * @return A list of the result for the actions. Wrapped by a {@link CompletableFuture}. */ default <T> CompletableFuture<List<T>> batchAll(List<? extends Row> actions) { return allOf(batch(actions)); }
/** * A simple version for batch exists. It will fail if there are any failures and you will get the * whole result boolean list at once if the operation is succeeded. * @param gets the Gets * @return A {@link CompletableFuture} that wrapper the result boolean list. */ default CompletableFuture<List<Boolean>> existsAll(List<Get> gets) { return allOf(exists(gets)); }
/** * A simple version of batch put. It will fail if there are any failures. * @param puts The list of mutations to apply. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> putAll(List<Put> puts) { return allOf(put(puts)).thenApply(r -> null); }
/** * A simple version of batch delete. It will fail if there are any failures. * @param deletes list of things to delete. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> deleteAll(List<Delete> deletes) { return allOf(delete(deletes)).thenApply(r -> null); }
/** * A simple version of batch delete. It will fail if there are any failures. * @param deletes list of things to delete. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> deleteAll(List<Delete> deletes) { return allOf(delete(deletes)).thenApply(r -> null); }
/** * A simple version for batch get. It will fail if there are any failures and you will get the * whole result list at once if the operation is succeeded. * @param gets The objects that specify what data to fetch and from which rows. * @return A {@link CompletableFuture} that wrapper the result list. */ default CompletableFuture<List<Result>> getAll(List<Get> gets) { return allOf(get(gets)); }
/** * A simple version for batch exists. It will fail if there are any failures and you will get the * whole result boolean list at once if the operation is succeeded. * @param gets the Gets * @return A {@link CompletableFuture} that wrapper the result boolean list. */ default CompletableFuture<List<Boolean>> existsAll(List<Get> gets) { return allOf(exists(gets)); }
/** * A simple version of batch put. It will fail if there are any failures. * @param puts The list of mutations to apply. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> putAll(List<Put> puts) { return allOf(put(puts)).thenApply(r -> null); }
/** * A simple version of batch. It will fail if there are any failures and you will get the whole * result list at once if the operation is succeeded. * @param actions list of Get, Put, Delete, Increment, Append and RowMutations objects * @return A list of the result for the actions. Wrapped by a {@link CompletableFuture}. */ default <T> CompletableFuture<List<T>> batchAll(List<? extends Row> actions) { return allOf(batch(actions)); }
/** * A simple version of batch delete. It will fail if there are any failures. * @param deletes list of things to delete. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> deleteAll(List<Delete> deletes) { return allOf(delete(deletes)).thenApply(r -> null); }
/** * A simple version of batch put. It will fail if there are any failures. * @param puts The list of mutations to apply. * @return A {@link CompletableFuture} that always returns null when complete normally. */ default CompletableFuture<Void> putAll(List<Put> puts) { return allOf(put(puts)).thenApply(r -> null); }
/** * A simple version for batch get. It will fail if there are any failures and you will get the * whole result list at once if the operation is succeeded. * @param gets The objects that specify what data to fetch and from which rows. * @return A {@link CompletableFuture} that wrapper the result list. */ default CompletableFuture<List<Result>> getAll(List<Get> gets) { return allOf(get(gets)); }
/** * A simple version for batch exists. It will fail if there are any failures and you will get the * whole result boolean list at once if the operation is succeeded. * @param gets the Gets * @return A {@link CompletableFuture} that wrapper the result boolean list. */ default CompletableFuture<List<Boolean>> existsAll(List<Get> gets) { return allOf(exists(gets)); }
/** * A simple version of batch. It will fail if there are any failures and you will get the whole * result list at once if the operation is succeeded. * @param actions list of Get, Put, Delete, Increment, Append and RowMutations objects * @return A list of the result for the actions. Wrapped by a {@link CompletableFuture}. */ default <T> CompletableFuture<List<T>> batchAll(List<? extends Row> actions) { return allOf(batch(actions)); }