public final class ReadModifyWriteRow implements Serializable
Wraps a ReadModifyWriteRowRequest.
Static Methods
create(String tableId, ByteString key)
public static ReadModifyWriteRow create(String tableId, ByteString key)
create(String tableId, String key)
public static ReadModifyWriteRow create(String tableId, String key)
fromProto(ReadModifyWriteRowRequest request)
public static ReadModifyWriteRow fromProto(ReadModifyWriteRowRequest request)
Wraps the protobuf ReadModifyWriteRowRequest.
WARNING: Please note that the table_name will be overwritten by the configuration in the
BigtableDataClient.
Parameter |
---|
Name | Description |
request | com.google.bigtable.v2.ReadModifyWriteRowRequest
|
Methods
append(String familyName, ByteString qualifier, ByteString value)
public ReadModifyWriteRow append(String familyName, ByteString qualifier, 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.
append(String familyName, String qualifier, String value)
public ReadModifyWriteRow append(String familyName, String qualifier, 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.
increment(String familyName, ByteString qualifier, long amount)
public ReadModifyWriteRow increment(String familyName, 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.
increment(String familyName, String qualifier, long amount)
public ReadModifyWriteRow increment(String familyName, 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.
toProto(RequestContext requestContext)
public ReadModifyWriteRowRequest toProto(RequestContext requestContext)
Parameter |
---|
Name | Description |
requestContext | com.google.cloud.bigtable.data.v2.internal.RequestContext
|
Returns |
---|
Type | Description |
com.google.bigtable.v2.ReadModifyWriteRowRequest | |