Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigtable::BulkMutation Class Reference

Represent a set of mutations across multiple rows. More...

#include <google/cloud/bigtable/mutations.h>

Public Member Functions

 BulkMutation ()=default
 Create an empty set of mutations. More...
 
template<typename Iterator >
 BulkMutation (Iterator begin, Iterator end)
 Create a multi-row mutation from a range of SingleRowMutations. More...
 
 BulkMutation (std::initializer_list< SingleRowMutation > list)
 Create a multi-row mutation from a initializer list. More...
 
 BulkMutation (SingleRowMutation mutation)
 Create a multi-row mutation from a SingleRowMutation. More...
 
 BulkMutation (SingleRowMutation m1, SingleRowMutation m2)
 Create a multi-row mutation from two SingleRowMutation. More...
 
template<typename... M>
 BulkMutation (M &&... m)
 Create a multi-row mutation from a variadic list. More...
 
BulkMutationemplace_back (SingleRowMutation mut)
 
BulkMutationemplace_back (FailedMutation fm)
 
BulkMutationpush_back (SingleRowMutation mut)
 
void MoveTo (google::bigtable::v2::MutateRowsRequest *request)
 Move the contents into a bigtable::v2::MutateRowsRequest. More...
 
bool empty () const
 Return true if there are no mutations in this set. More...
 
std::size_t size () const
 Return the number of mutations in this set. More...
 
std::size_t estimated_size_in_bytes () const
 Return the estimated size in bytes of all the mutations in this set. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BulkMutation() [1/6]

google::cloud::bigtable::BulkMutation::BulkMutation ( )
default

Create an empty set of mutations.

◆ BulkMutation() [2/6]

template<typename Iterator >
google::cloud::bigtable::BulkMutation::BulkMutation ( Iterator  begin,
Iterator  end 
)
inline

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

◆ BulkMutation() [3/6]

google::cloud::bigtable::BulkMutation::BulkMutation ( std::initializer_list< SingleRowMutation list)
inline

Create a multi-row mutation from a initializer list.

◆ BulkMutation() [4/6]

google::cloud::bigtable::BulkMutation::BulkMutation ( SingleRowMutation  mutation)
inlineexplicit

Create a multi-row mutation from a SingleRowMutation.

◆ BulkMutation() [5/6]

google::cloud::bigtable::BulkMutation::BulkMutation ( SingleRowMutation  m1,
SingleRowMutation  m2 
)
inline

Create a multi-row mutation from two SingleRowMutation.

◆ BulkMutation() [6/6]

template<typename... M>
google::cloud::bigtable::BulkMutation::BulkMutation ( M &&...  m)
inline

Create a multi-row mutation from a variadic list.

Member Function Documentation

◆ emplace_back() [1/2]

BulkMutation & google::cloud::bigtable::BulkMutation::emplace_back ( FailedMutation  fm)
inline

◆ emplace_back() [2/2]

BulkMutation & google::cloud::bigtable::BulkMutation::emplace_back ( SingleRowMutation  mut)
inline

◆ empty()

bool google::cloud::bigtable::BulkMutation::empty ( ) const
inline

Return true if there are no mutations in this set.

◆ estimated_size_in_bytes()

std::size_t google::cloud::bigtable::BulkMutation::estimated_size_in_bytes ( ) const
inline

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

◆ MoveTo()

void google::cloud::bigtable::BulkMutation::MoveTo ( google::bigtable::v2::MutateRowsRequest *  request)
inline

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

◆ push_back()

BulkMutation & google::cloud::bigtable::BulkMutation::push_back ( SingleRowMutation  mut)
inline

◆ size()

std::size_t google::cloud::bigtable::BulkMutation::size ( ) const
inline

Return the number of mutations in this set.