Class ReadModifyWriteRow
java.lang.Object
com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow
- All Implemented Interfaces:
Serializable
Wraps a
ReadModifyWriteRowRequest
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionappend
(String familyName, com.google.protobuf.ByteString qualifier, com.google.protobuf.ByteString value) Appends the value to the existing value of the cell.Appends the value to the existing value of the cell.static ReadModifyWriteRow
static ReadModifyWriteRow
static ReadModifyWriteRow
fromProto
(com.google.bigtable.v2.ReadModifyWriteRowRequest request) Wraps the protobufReadModifyWriteRowRequest
.Adds `amount` be added to the existing value.Adds `amount` be added to the existing value.com.google.bigtable.v2.ReadModifyWriteRowRequest
toProto
(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
-
Method Details
-
create
-
create
public static ReadModifyWriteRow create(@Nonnull String tableId, @Nonnull com.google.protobuf.ByteString key) -
append
public ReadModifyWriteRow append(@Nonnull String familyName, @Nonnull String qualifier, @Nonnull String value) Appends the value to the existing value of the cell. If the targeted cell is unset, it will be treated as containing the empty string. -
append
public ReadModifyWriteRow append(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, @Nonnull com.google.protobuf.ByteString value) Appends the value to the existing value of the cell. If the targeted cell is unset, it will be treated as containing the empty string. -
increment
public ReadModifyWriteRow increment(@Nonnull String familyName, @Nonnull String qualifier, long amount) Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail. -
increment
public ReadModifyWriteRow increment(@Nonnull String familyName, @Nonnull com.google.protobuf.ByteString qualifier, long amount) Adds `amount` be added to the existing value. If the targeted cell is unset, it will be treated as containing a zero. Otherwise, the targeted cell must contain an 8-byte value (interpreted as a 64-bit big-endian signed integer), or the entire request will fail. -
toProto
@InternalApi public com.google.bigtable.v2.ReadModifyWriteRowRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext) -
fromProto
@BetaApi public static ReadModifyWriteRow fromProto(@Nonnull com.google.bigtable.v2.ReadModifyWriteRowRequest request) Wraps the protobufReadModifyWriteRowRequest
.WARNING: Please note that the table_name will be overwritten by the configuration in the BigtableDataClient.
-