Google Bigtable v2 API - Class ReadModifyWriteRules (3.3.0)

public static class ReadModifyWriteRules

Reference documentation and code samples for the Google Bigtable v2 API class ReadModifyWriteRules.

Static class with convenience methods for creating various kinds of ReadModifyWriteRule instances.

Inheritance

Object > ReadModifyWriteRules

Namespace

Google.Cloud.Bigtable.V2

Assembly

Google.Cloud.Bigtable.V2.dll

Methods

Append(String, BigtableByteString, BigtableByteString)

public static ReadModifyWriteRule Append(string familyName, BigtableByteString columnQualifier, BigtableByteString appendValue)

Rule specifying that appendValue be appended to the existing value. If the targeted cell is unset, it will be treated as containing the empty string.

Parameters
NameDescription
familyNameString

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

columnQualifierBigtableByteString

The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string.

appendValueBigtableByteString

The value to append to the existing cell value.

Returns
TypeDescription
ReadModifyWriteRule

The append value rule.

Remarks

Note that string is implicitly convertible to BigtableByteString, so columnQualifier can be specified using a string as well and its UTF-8 representations will be used.

Increment(String, BigtableByteString, Int64)

public static ReadModifyWriteRule Increment(string familyName, BigtableByteString columnQualifier, long incrementAmount)

Rule specifying that incrementAmount 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

The name of the family to which the read/modify/write should be applied. Must match [-_.a-zA-Z0-9]+

columnQualifierBigtableByteString

The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string.

incrementAmountInt64

The amount to increment the existing cell value.

Returns
TypeDescription
ReadModifyWriteRule

The increment amount rule.

Remarks

Note that string is implicitly convertible to BigtableByteString, so columnQualifier can be specified using a string as well and its UTF-8 representations will be used.