Cloud Bigtable Client - Class Mutations (2.6.1)

Reference documentation and code samples for the Cloud Bigtable Client class Mutations.

Represents a Mutation to perform data operation on Bigtable table.

This is used to insert,update, delete operation on row in Bigtable table.

Namespace

Google \ Cloud \ Bigtable

Methods

upsert

Creates Insert/Update mutation for a row.

Parameters
Name Description
family string

Family name of the row.

qualifier string

Column qualifier of the row.

value string

Value of the column qualifier.

timeStamp string|int

[optional] A timestamp value, in microseconds. Use the value -1 to utilize the current Bigtable server time. Defaults to* the current local system time.

Returns
Type Description
Mutations returns current Mutations object.

deleteFromFamily

Creates delete from family mutation for a row.

Parameter
Name Description
family string

Family name of the row.

Returns
Type Description
Mutations returns current Mutations object.

deleteFromColumn

Creates delete from column mutation for a row.

Parameters
Name Description
family string

Family name of the row.

qualifier string

Column qualifier of the row.

timeRange array

[optional] Array of values value, in microseconds to delete from column, keyed by start and end representing time range window. start Defaults to 0 end Defaults to infinity

Returns
Type Description
Mutations returns current Mutations object.

deleteRow

Creates delete row mutation for a row.

Returns
Type Description
Mutations returns current Mutations object.

toProto

Returns protobuf representation of Mutations.

Returns
Type Description
array returns array of protobuf representation of Mutations.