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

Represent a single row mutation. More...

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

Public Member Functions

 SingleRowMutation (std::string row_key)
 Create an empty mutation. More...
 
 SingleRowMutation (std::string row_key, std::initializer_list< Mutation > list)
 Create a row mutation from a initializer list. More...
 
template<typename... M>
 SingleRowMutation (std::string row_key, M &&... m)
 Create a single-row multiple-cell mutation from a variadic list. More...
 
 SingleRowMutation (::google::bigtable::v2::MutateRowsRequest::Entry entry)
 Create a row mutation from gRPC proto. More...
 
 SingleRowMutation (::google::bigtable::v2::MutateRowRequest request)
 Create a row mutation from gRPC proto. More...
 
SingleRowMutationemplace_back (Mutation mut)
 
std::string const & row_key () const
 
 SingleRowMutation (SingleRowMutation &&rhs)=default
 
SingleRowMutationoperator= (SingleRowMutation &&rhs)=default
 
 SingleRowMutation (SingleRowMutation const &rhs)=default
 
SingleRowMutationoperator= (SingleRowMutation const &rhs)=default
 
void MoveTo (google::bigtable::v2::MutateRowsRequest::Entry *entry)
 Move the contents into a bigtable::v2::MutateRowsRequest::Entry. More...
 
void MoveTo (google::bigtable::v2::MutateRowRequest &request)
 Transfer the contents to request. More...
 
void Clear ()
 Remove the contents of the mutation. More...
 

Friends

class Table
 

Detailed Description

Represent a single row mutation.

Bigtable can perform multiple changes to a single row atomically. This class represents 0 or more changes to apply to a single row. The changes may include setting cells (which implicitly insert the values), deleting values, etc.

Definition at line 215 of file mutations.h.

Constructor & Destructor Documentation

◆ SingleRowMutation() [1/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( std::string  row_key)
inlineexplicit

Create an empty mutation.

Definition at line 218 of file mutations.h.

◆ SingleRowMutation() [2/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( std::string  row_key,
std::initializer_list< Mutation list 
)
inline

Create a row mutation from a initializer list.

Definition at line 222 of file mutations.h.

◆ SingleRowMutation() [3/7]

template<typename... M>
google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( std::string  row_key,
M &&...  m 
)
inlineexplicit

Create a single-row multiple-cell mutation from a variadic list.

Definition at line 231 of file mutations.h.

◆ SingleRowMutation() [4/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( ::google::bigtable::v2::MutateRowsRequest::Entry  entry)
inlineexplicit

Create a row mutation from gRPC proto.

Definition at line 241 of file mutations.h.

◆ SingleRowMutation() [5/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( ::google::bigtable::v2::MutateRowRequest  request)
inlineexplicit

Create a row mutation from gRPC proto.

Definition at line 248 of file mutations.h.

◆ SingleRowMutation() [6/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( SingleRowMutation &&  rhs)
default

◆ SingleRowMutation() [7/7]

google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( SingleRowMutation const &  rhs)
default

Member Function Documentation

◆ Clear()

void google::cloud::bigtable::v0::SingleRowMutation::Clear ( )
inline

Remove the contents of the mutation.

Definition at line 282 of file mutations.h.

◆ emplace_back()

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

Definition at line 254 of file mutations.h.

◆ MoveTo() [1/2]

void google::cloud::bigtable::v0::SingleRowMutation::MoveTo ( google::bigtable::v2::MutateRowsRequest::Entry *  entry)
inline

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

Definition at line 270 of file mutations.h.

◆ MoveTo() [2/2]

void google::cloud::bigtable::v0::SingleRowMutation::MoveTo ( google::bigtable::v2::MutateRowRequest &  request)
inline

Transfer the contents to request.

Definition at line 276 of file mutations.h.

◆ operator=() [1/2]

SingleRowMutation& google::cloud::bigtable::v0::SingleRowMutation::operator= ( SingleRowMutation &&  rhs)
default

◆ operator=() [2/2]

SingleRowMutation& google::cloud::bigtable::v0::SingleRowMutation::operator= ( SingleRowMutation const &  rhs)
default

◆ row_key()

std::string const& google::cloud::bigtable::v0::SingleRowMutation::row_key ( ) const
inline

Definition at line 260 of file mutations.h.

Friends And Related Function Documentation

◆ Table

friend class Table
friend

Definition at line 262 of file mutations.h.