Google Cloud Bigtable C++ Client  1.32.1
A C++ Client Library for Google Cloud Bigtable
Public Member Functions | List of all members
google::cloud::bigtable::v1::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, typename std::enable_if< absl::conjunction< std::is_convertible< M, SingleRowMutation >... >::value, int >::type = 0>
 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.

Definition at line 468 of file mutations.h.

Constructor & Destructor Documentation

◆ BulkMutation() [1/6]

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

Create an empty set of mutations.

◆ BulkMutation() [2/6]

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

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

Definition at line 475 of file mutations.h.

◆ BulkMutation() [3/6]

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

Create a multi-row mutation from a initializer list.

Definition at line 485 of file mutations.h.

◆ BulkMutation() [4/6]

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

Create a multi-row mutation from a SingleRowMutation.

Definition at line 489 of file mutations.h.

◆ BulkMutation() [5/6]

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

Create a multi-row mutation from two SingleRowMutation.

Definition at line 494 of file mutations.h.

◆ BulkMutation() [6/6]

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

Create a multi-row mutation from a variadic list.

Definition at line 505 of file mutations.h.

Member Function Documentation

◆ emplace_back() [1/2]

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

Definition at line 516 of file mutations.h.

◆ emplace_back() [2/2]

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

Definition at line 510 of file mutations.h.

◆ empty()

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

Return true if there are no mutations in this set.

Definition at line 534 of file mutations.h.

◆ estimated_size_in_bytes()

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

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

Definition at line 540 of file mutations.h.

◆ MoveTo()

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

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

Definition at line 528 of file mutations.h.

◆ push_back()

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

Definition at line 522 of file mutations.h.

◆ size()

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

Return the number of mutations in this set.

Definition at line 537 of file mutations.h.