public static class ReadModifyWriteRulesReference documentation and code samples for the Google Bigtable v2 API class ReadModifyWriteRules.
Static class with convenience methods for creating various kinds of ReadModifyWriteRule instances.
Namespace
Google.Cloud.Bigtable.V2Assembly
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 | |
|---|---|
| Name | Description |
familyName |
stringThe name of the family to which the read/modify/write should be applied.
Must match |
columnQualifier |
BigtableByteStringThe qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string. |
appendValue |
BigtableByteStringThe value to append to the existing cell value. |
| Returns | |
|---|---|
| Type | Description |
ReadModifyWriteRule |
The append value rule. |
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, long)
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 | |
|---|---|
| Name | Description |
familyName |
stringThe name of the family to which the read/modify/write should be applied.
Must match |
columnQualifier |
BigtableByteStringThe qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string. |
incrementAmount |
longThe amount to increment the existing cell value. |
| Returns | |
|---|---|
| Type | Description |
ReadModifyWriteRule |
The increment amount rule. |
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.