Google Cloud Bigtable C++ Client  0.11.0
A C++ Client Library for Google Cloud Bigtable
Public Member Functions | List of all members
google::cloud::bigtable::v0::BulkMutation Class Reference

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

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

Public Member Functions

 BulkMutation ()
 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 muti-row mutation from two SingleRowMutation. More...
 
template<typename... M, typename std::enable_if< internal::conjunction< std::is_convertible< M, SingleRowMutation >... >::value, int >::type = 0>
 BulkMutation (M &&... m)
 Create a muti-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.

Definition at line 427 of file mutations.h.

Constructor & Destructor Documentation

◆ BulkMutation() [1/6]

google::cloud::bigtable::v0::BulkMutation::BulkMutation ( )
inline

Create an empty set of mutations.

Definition at line 430 of file mutations.h.

◆ BulkMutation() [2/6]

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

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

Definition at line 434 of file mutations.h.

◆ BulkMutation() [3/6]

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

Create a multi-row mutation from a initializer list.

Definition at line 444 of file mutations.h.

◆ BulkMutation() [4/6]

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

Create a multi-row mutation from a SingleRowMutation.

Definition at line 448 of file mutations.h.

◆ BulkMutation() [5/6]

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

Create a muti-row mutation from two SingleRowMutation.

Definition at line 453 of file mutations.h.

◆ BulkMutation() [6/6]

template<typename... M, typename std::enable_if< internal::conjunction< std::is_convertible< M, SingleRowMutation >... >::value, int >::type = 0>
google::cloud::bigtable::v0::BulkMutation::BulkMutation ( M &&...  m)
inline

Create a muti-row mutation from a variadic list.

Definition at line 463 of file mutations.h.

Member Function Documentation

◆ emplace_back() [1/2]

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

Definition at line 468 of file mutations.h.

◆ emplace_back() [2/2]

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

Definition at line 474 of file mutations.h.

◆ empty()

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

Return true if there are no mutations in this set.

Definition at line 492 of file mutations.h.

◆ estimated_size_in_bytes()

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

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

Definition at line 498 of file mutations.h.

◆ MoveTo()

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

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

Definition at line 486 of file mutations.h.

◆ push_back()

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

Definition at line 480 of file mutations.h.

◆ size()

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

Return the number of mutations in this set.

Definition at line 495 of file mutations.h.