Class ReadModifyWriteRow (2.37.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
NameDescription
targetIdTargetId
keyByteString
Returns
TypeDescription
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
NameDescription
targetIdTargetId
keyString
Returns
TypeDescription
ReadModifyWriteRow

create(String tableId, ByteString key) (deprecated)

public static ReadModifyWriteRow create(String tableId, ByteString key)

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

Parameters
NameDescription
tableIdString
keyByteString
Returns
TypeDescription
ReadModifyWriteRow

create(String tableId, String key) (deprecated)

public static ReadModifyWriteRow create(String tableId, String key)

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

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