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 ReadModifyWriteRowCreates a new instance of the ReadModifyWriteRow for the given target with targetId.static ReadModifyWriteRowCreates a new instance of the ReadModifyWriteRow for the given target with targetId.static ReadModifyWriteRowDeprecated.static ReadModifyWriteRowDeprecated.Please usecreate(TargetId, String)instead.static ReadModifyWriteRowfromProto(ReadModifyWriteRowRequest request) Wraps the protobufReadModifyWriteRowRequest.Adds `amount` be added to the existing value.Adds `amount` be added to the existing value.toProto(com.google.cloud.bigtable.data.v2.internal.RequestContext requestContext)
-
Method Details
-
create
Deprecated.Please usecreate(TargetId, String)instead. -
create
Creates a new instance of the ReadModifyWriteRow for the given target with targetId.- See Also:
-
create
@Deprecated public static ReadModifyWriteRow create(String tableId, com.google.protobuf.ByteString key) Deprecated.Please usecreate(TargetId, ByteString)instead. -
create
Creates a new instance of the ReadModifyWriteRow for the given target with targetId.- See Also:
-
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
Wraps the protobufReadModifyWriteRowRequest.WARNING: Please note that the table_name will be overwritten by the configuration in the BigtableDataClient.
-
create(TargetId, ByteString)instead.