public final class BulkMutation extends Object implements Serializable, Cloneable
This class is meant for manual batching.
| Modifier and Type | Method and Description |
|---|---|
BulkMutation |
add(com.google.protobuf.ByteString rowKey,
Mutation mutation)
Add mutation for a particular row.
|
BulkMutation |
add(RowMutationEntry entry)
Add mutation for a particular row.
|
BulkMutation |
add(String rowKey,
Mutation mutation)
Add mutation for a particular row.
|
BulkMutation |
clone()
Creates a copy of
BulkMutation. |
static BulkMutation |
create(String tableId) |
static BulkMutation |
fromProto(MutateRowsRequest request)
Wraps the protobuf
MutateRowsRequest. |
int |
getEntryCount() |
MutateRowsRequest |
toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext) |
public static BulkMutation create(String tableId)
public BulkMutation add(@Nonnull String rowKey, @Nonnull Mutation mutation)
public BulkMutation add(@Nonnull com.google.protobuf.ByteString rowKey, @Nonnull Mutation mutation)
public BulkMutation add(@Nonnull RowMutationEntry entry)
public int getEntryCount()
@InternalApi public MutateRowsRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
@BetaApi public static BulkMutation fromProto(@Nonnull MutateRowsRequest request)
MutateRowsRequest.
This is meant for advanced usage only. Please ensure that the MutateRowsRequest does not use server side timestamps. The BigtableDataClient assumes that mutation present in BulkMutation are idempotent and is configured to enable retries by default. If serverside timestamps are enabled then that can lead to duplicate mutations.
WARNING: when applied, the resulting mutation object will ignore the project id and instance id in the table_name and instead apply the configuration in the client.
public BulkMutation clone()
BulkMutation.Copyright © 2021 Google LLC. All rights reserved.