Class ReadModifyWriteRow (2.51.0)

public final class ReadModifyWriteRow implements Serializable

Wraps a ReadModifyWriteRowRequest.

Inheritance

java.lang.Object > ReadModifyWriteRow

Implements

Serializable

Static Methods

create(TargetId targetId, ByteString key)

public static ReadModifyWriteRow create(TargetId targetId, ByteString key)

Creates a new instance of the ReadModifyWriteRow for the given target with targetId. See Also: TableId, AuthorizedViewId

Parameters
Name Description
targetId TargetId
key ByteString
Returns
Type Description
ReadModifyWriteRow

create(TargetId targetId, String key)

public static ReadModifyWriteRow create(TargetId targetId, String key)

Creates a new instance of the ReadModifyWriteRow for the given target with targetId. See Also: TableId, AuthorizedViewId

Parameters
Name Description
targetId TargetId
key String
Returns
Type Description
ReadModifyWriteRow

create(String tableId, ByteString key) (deprecated)

public static ReadModifyWriteRow create(String tableId, ByteString key)

Deprecated. Please use ReadModifyWriteRow#create(TargetId, ByteString) instead.

Parameters
Name Description
tableId String
key ByteString
Returns
Type Description
ReadModifyWriteRow

create(String tableId, String key) (deprecated)

public static ReadModifyWriteRow create(String tableId, String key)

Deprecated. Please use ReadModifyWriteRow#create(TargetId, String) instead.

Parameters
Name Description
tableId String
key String
Returns
Type Description
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
Name Description
request com.google.bigtable.v2.ReadModifyWriteRowRequest
Returns
Type Description
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
Name Description
familyName String
qualifier ByteString
value ByteString
Returns
Type Description
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
Name Description
familyName String
qualifier String
value String
Returns
Type Description
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
Name Description
familyName String
qualifier ByteString
amount long
Returns
Type Description
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
Name Description
familyName String
qualifier String
amount long
Returns
Type Description
ReadModifyWriteRow

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