Mutations

class google.cloud.bigtable.data.mutations.DeleteAllFromFamily(family_to_delete: 'str')

Bases: google.cloud.bigtable.data.mutations.Mutation

class google.cloud.bigtable.data.mutations.DeleteAllFromRow()

Bases: google.cloud.bigtable.data.mutations.Mutation

class google.cloud.bigtable.data.mutations.DeleteRangeFromColumn(family: 'str', qualifier: 'bytes', start_timestamp_micros: 'int | None' = None, end_timestamp_micros: 'int | None' = None)

Bases: google.cloud.bigtable.data.mutations.Mutation

class google.cloud.bigtable.data.mutations.Mutation()

Bases: abc.ABC

Model class for mutations

is_idempotent()

Check if the mutation is idempotent If false, the mutation will not be retried

size()

Get the size of the mutation in bytes

class google.cloud.bigtable.data.mutations.SetCell(family: str, qualifier: bytes | str, new_value: bytes | str | int, timestamp_micros: Optional[int] = None)

Bases: google.cloud.bigtable.data.mutations.Mutation

Mutation to set the value of a cell

  • Parameters

    • family (-) – The name of the column family to which the new cell belongs.

    • qualifier (-) – The column qualifier of the new cell.

    • new_value (-) – The value of the new cell. str or int input will be converted to bytes

    • timestamp_micros (-) – The timestamp of the new cell. If None, the current timestamp will be used. Timestamps will be sent with milisecond-percision. Extra precision will be truncated. If -1, the server will assign a timestamp. Note that SetCell mutations with server-side timestamps are non-idempotent operations and will not be retried.

is_idempotent()

Check if the mutation is idempotent