Class BulkMutation (2.32.0)

Represent a set of mutations across multiple rows.

Cloud Bigtable can batch multiple mutations in a single request. The mutations are not atomic, but it is more efficient to send them in a batch than to make multiple smaller requests.

Constructors

BulkMutation()

Create an empty set of mutations.

BulkMutation(Iterator, Iterator)

Create a multi-row mutation from a range of SingleRowMutations.

Parameters
Name Description
begin Iterator
end Iterator
typename Iterator

BulkMutation(std::initializer_list< SingleRowMutation >)

Create a multi-row mutation from a initializer list.

Parameter
Name Description
list std::initializer_list< SingleRowMutation >

BulkMutation(SingleRowMutation)

Create a multi-row mutation from a SingleRowMutation.

Parameter
Name Description
mutation SingleRowMutation

BulkMutation(SingleRowMutation, SingleRowMutation)

Create a multi-row mutation from two SingleRowMutation.

Parameters
Name Description
m1 SingleRowMutation
m2 SingleRowMutation

BulkMutation(M &&...)

Create a multi-row mutation from a variadic list.

Parameters
Name Description
m M &&...
typename...

Functions

emplace_back(SingleRowMutation)

Parameter
Name Description
mut SingleRowMutation
Returns
Type Description
BulkMutation &

emplace_back(FailedMutation)

Parameter
Name Description
fm FailedMutation
Returns
Type Description
BulkMutation &

push_back(SingleRowMutation)

Parameter
Name Description
mut SingleRowMutation
Returns
Type Description
BulkMutation &

MoveTo(google::bigtable::v2::MutateRowsRequest *)

Move the contents into a bigtable::v2::MutateRowsRequest.

Parameter
Name Description
request google::bigtable::v2::MutateRowsRequest *
Returns
Type Description
void

empty() const

Return true if there are no mutations in this set.

Returns
Type Description
bool

size() const

Return the number of mutations in this set.

Returns
Type Description
std::size_t

estimated_size_in_bytes() const

Return the estimated size in bytes of all the mutations in this set.

Returns
Type Description
std::size_t