From a7fbb0d85c2d0fabbb1aef2bc4cd948f21577615 Mon Sep 17 00:00:00 2001 From: Rahul Kesharwani Date: Wed, 22 Jan 2020 03:08:05 +0530 Subject: [PATCH] chore: java doc update to for returned data instances To let the user know about Batcher instance returned from Bulk operations are not threadsafe. --- .../google/cloud/bigtable/data/v2/BigtableDataClient.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java index 3b287594fc..25e4607b94 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataClient.java @@ -913,6 +913,8 @@ public void bulkMutateRows(BulkMutation mutation) { * Mutates multiple rows in a batch. Each individual row is mutated atomically as in MutateRow, * but the entire batch is not executed atomically. * + *

The returned Batcher instance is not threadsafe, it can only be used from single thread. + * *

Sample Code: * *

{@code
@@ -941,6 +943,8 @@ public Batcher newBulkMutationBatcher(@Nonnull String ta
    * Reads rows for given tableId in a batch. If the row does not exist, the value will be null.
    * This operation should be called with in a single thread.
    *
+   * 

The returned Batcher instance is not threadsafe, it can only be used from single thread. + * *

Sample Code: * *

{@code
@@ -975,6 +979,8 @@ public Batcher newBulkReadRowsBatcher(String tableId) {
    * Reads rows for given tableId and filter criteria in a batch. If the row does not exist, the
    * value will be null. This operation should be called with in a single thread.
    *
+   * 

The returned Batcher instance is not threadsafe, it can only be used from single thread. + * *

Sample Code: * *

{@code