Google Cloud Bigtable C++ Client  0.11.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

template<typename RowKey , typename std::enable_if< std::is_constructible< RowKeyType, RowKey >::value, int >::type = 0>
 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, typename std::enable_if< std::is_constructible< RowKeyType, RowKey >::value, int >::type = 0>
 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
 

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 252 of file mutations.h.

Constructor & Destructor Documentation

◆ SingleRowMutation() [1/7]

template<typename RowKey , typename std::enable_if< std::is_constructible< RowKeyType, RowKey >::value, int >::type = 0>
google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( RowKey &&  row_key)
inlineexplicit

Create an empty mutation.

Definition at line 259 of file mutations.h.

◆ SingleRowMutation() [2/7]

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

Create a row mutation from a initializer list.

Definition at line 265 of file mutations.h.

◆ SingleRowMutation() [3/7]

template<typename RowKey , typename... M, typename std::enable_if< std::is_constructible< RowKeyType, RowKey >::value, int >::type = 0>
google::cloud::bigtable::v0::SingleRowMutation::SingleRowMutation ( RowKey &&  row_key,
M &&...  m 
)
inlineexplicit

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

Definition at line 278 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 288 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 296 of file mutations.h.

◆ SingleRowMutation() [6/7]

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

◆ SingleRowMutation() [7/7]

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

Member Function Documentation

◆ Clear()

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

Remove the contents of the mutation.

Definition at line 328 of file mutations.h.

◆ emplace_back()

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

Definition at line 300 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 316 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 322 of file mutations.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ row_key()

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

Definition at line 306 of file mutations.h.

Friends And Related Function Documentation

◆ Table

friend class Table
friend

Definition at line 308 of file mutations.h.