public static 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 | String The name of the family to which the read/modify/write should be applied.
Must match |
columnQualifier | BigtableByteString The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string. |
appendValue | BigtableByteString The 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, 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 | |
---|---|
Name | Description |
familyName | String The name of the family to which the read/modify/write should be applied.
Must match |
columnQualifier | BigtableByteString The qualifier of the column to which the read/modify/write should be applied. Can be any byte string, including the empty string. |
incrementAmount | Int64 The 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.