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

Represent a single row mutation. More...

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

Public Member Functions

template<typename RowKey >
 SingleRowMutation (RowKey &&row_key)
 Create an empty mutation. More...
 
template<typename RowKey >
 SingleRowMutation (RowKey &&row_key, std::initializer_list< Mutation > list)
 Create a row mutation from a initializer list. More...
 
template<typename RowKey , typename... M>
 SingleRowMutation (RowKey &&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)
 
RowKeyType const & row_key () const
 
 SingleRowMutation (SingleRowMutation &&)=default
 
SingleRowMutationoperator= (SingleRowMutation &&)=default
 
 SingleRowMutation (SingleRowMutation const &)=default
 
SingleRowMutationoperator= (SingleRowMutation const &)=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
 
bool operator== (SingleRowMutation const &a, SingleRowMutation const &b) noexcept
 
bool operator!= (SingleRowMutation const &a, SingleRowMutation const &b) noexcept
 

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.

Constructor & Destructor Documentation

◆ SingleRowMutation() [1/7]

template<typename RowKey >
google::cloud::bigtable::SingleRowMutation::SingleRowMutation ( RowKey &&  row_key)
inlineexplicit

Create an empty mutation.

◆ SingleRowMutation() [2/7]

template<typename RowKey >
google::cloud::bigtable::SingleRowMutation::SingleRowMutation ( RowKey &&  row_key,
std::initializer_list< Mutation list 
)
inline

Create a row mutation from a initializer list.

◆ SingleRowMutation() [3/7]

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

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

◆ SingleRowMutation() [4/7]

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

Create a row mutation from gRPC proto.

◆ SingleRowMutation() [5/7]

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

Create a row mutation from gRPC proto.

◆ SingleRowMutation() [6/7]

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

◆ SingleRowMutation() [7/7]

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

Member Function Documentation

◆ Clear()

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

Remove the contents of the mutation.

◆ emplace_back()

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

◆ MoveTo() [1/2]

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

Transfer the contents to request.

◆ MoveTo() [2/2]

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

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ row_key()

RowKeyType const & google::cloud::bigtable::SingleRowMutation::row_key ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( SingleRowMutation const &  a,
SingleRowMutation const &  b 
)
friend

◆ operator==

bool operator== ( SingleRowMutation const &  a,
SingleRowMutation const &  b 
)
friend

◆ Table

friend class Table
friend