Class BulkMutation (2.14.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
NameDescription
begin Iterator
end Iterator
typename Iterator

BulkMutation(std::initializer_list< SingleRowMutation >)

Create a multi-row mutation from a initializer list.

Parameter
NameDescription
list std::initializer_list< SingleRowMutation >

BulkMutation(SingleRowMutation)

Create a multi-row mutation from a SingleRowMutation.

Parameter
NameDescription
mutation SingleRowMutation

BulkMutation(SingleRowMutation, SingleRowMutation)

Create a multi-row mutation from two SingleRowMutation.

Parameters
NameDescription
m1 SingleRowMutation
m2 SingleRowMutation

BulkMutation(M &&...)

Create a multi-row mutation from a variadic list.

Parameters
NameDescription
m M &&...
typename...

Functions

emplace_back(SingleRowMutation)

Parameter
NameDescription
mut SingleRowMutation
Returns
TypeDescription
BulkMutation &

emplace_back(FailedMutation)

Parameter
NameDescription
fm FailedMutation
Returns
TypeDescription
BulkMutation &

push_back(SingleRowMutation)

Parameter
NameDescription
mut SingleRowMutation
Returns
TypeDescription
BulkMutation &

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

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

Parameter
NameDescription
request google::bigtable::v2::MutateRowsRequest *
Returns
TypeDescription
void

empty() const

Return true if there are no mutations in this set.

Returns
TypeDescription
bool

size() const

Return the number of mutations in this set.

Returns
TypeDescription
std::size_t

estimated_size_in_bytes() const

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

Returns
TypeDescription
std::size_t