Class ReadModifyWriteRow (2.20.3)

public final class ReadModifyWriteRow implements Serializable

Wraps a ReadModifyWriteRowRequest.

Inheritance

java.lang.Object > ReadModifyWriteRow

Implements

Serializable

Static Methods

create(String tableId, ByteString key)

public static ReadModifyWriteRow create(String tableId, ByteString key)
Parameters
NameDescription
tableIdString
keyByteString
Returns
TypeDescription
ReadModifyWriteRow

create(String tableId, String key)

public static ReadModifyWriteRow create(String tableId, String key)
Parameters
NameDescription
tableIdString
keyString
Returns
TypeDescription
ReadModifyWriteRow

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
NameDescription
requestcom.google.bigtable.v2.ReadModifyWriteRowRequest
Returns
TypeDescription
ReadModifyWriteRow

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.

Parameters
NameDescription
familyNameString
qualifierByteString
valueByteString
Returns
TypeDescription
ReadModifyWriteRow

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.

Parameters
NameDescription
familyNameString
qualifierString
valueString
Returns
TypeDescription
ReadModifyWriteRow

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.

Parameters
NameDescription
familyNameString
qualifierByteString
amountlong
Returns
TypeDescription
ReadModifyWriteRow

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.

Parameters
NameDescription
familyNameString
qualifierString
amountlong
Returns
TypeDescription
ReadModifyWriteRow

toProto(RequestContext requestContext)

public ReadModifyWriteRowRequest toProto(RequestContext requestContext)
Parameter
NameDescription
requestContextcom.google.cloud.bigtable.data.v2.internal.RequestContext
Returns
TypeDescription
com.google.bigtable.v2.ReadModifyWriteRowRequest