Read Modify Write Rules

class google.cloud.bigtable.data.read_modify_write_rules.AppendValueRule(family: str, qualifier: bytes | str, append_value: bytes | str)

Bases: google.cloud.bigtable.data.read_modify_write_rules.ReadModifyWriteRule

Rule to append a value to a cellโ€™s value.

  • Parameters

    • family โ€“ The family name of the cell to append to.

    • qualifier โ€“ The qualifier of the cell to append to.

    • append_value โ€“ The value to append to the cellโ€™s value.

  • Raises

    TypeError โ€“ If append_value is not bytes or str.

class google.cloud.bigtable.data.read_modify_write_rules.IncrementRule(family: str, qualifier: bytes | str, increment_amount: int = 1)

Bases: google.cloud.bigtable.data.read_modify_write_rules.ReadModifyWriteRule

Rule to increment a cellโ€™s value.

  • Parameters

    • family โ€“ The family name of the cell to increment.

    • qualifier โ€“ The qualifier of the cell to increment.

    • increment_amount โ€“ The amount to increment the cellโ€™s value. Must be between -2**63 and 2**63 (64-bit signed int).

  • Raises

    • TypeError โ€“ If increment_amount is not an integer.

    • ValueError โ€“ If increment_amount is not between -2**63 and 2**63 (64-bit signed int).

class google.cloud.bigtable.data.read_modify_write_rules.ReadModifyWriteRule(family: str, qualifier: bytes | str)

Bases: abc.ABC

Abstract base class for read-modify-write rules.