Class ReadModifyWriteRow
- java.lang.Object
-
- com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow
-
- All Implemented Interfaces:
Serializable
public final class ReadModifyWriteRow extends Object implements Serializable
Wraps aReadModifyWriteRowRequest.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadModifyWriteRowappend(String familyName, com.google.protobuf.ByteString qualifier, com.google.protobuf.ByteString value)Appends the value to the existing value of the cell.ReadModifyWriteRowappend(String familyName, String qualifier, String value)Appends the value to the existing value of the cell.static ReadModifyWriteRowcreate(String tableId, com.google.protobuf.ByteString key)static ReadModifyWriteRowcreate(String tableId, String key)static ReadModifyWriteRowfromProto(ReadModifyWriteRowRequest request)Wraps the protobufReadModifyWriteRowRequest.ReadModifyWriteRowincrement(String familyName, com.google.protobuf.ByteString qualifier, long amount)Adds `amount` be added to the existing value.ReadModifyWriteRowincrement(String familyName, String qualifier, long amount)Adds `amount` be added to the existing value.ReadModifyWriteRowRequesttoProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
-
-
-
Method Detail
-
create
public static ReadModifyWriteRow create(@Nonnull String tableId, @Nonnull String key)
-
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 ReadModifyWriteRowRequest toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
-
fromProto
@BetaApi public static ReadModifyWriteRow fromProto(@Nonnull ReadModifyWriteRowRequest request)
Wraps the protobufReadModifyWriteRowRequest.WARNING: Please note that the table_name will be overwritten by the configuration in the BigtableDataClient.
-
-