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::RowSet Class Reference

Represent a (possibly non-continuous) set of row keys. More...

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

Public Member Functions

 RowSet ()=default
 Create an empty set. More...
 
 RowSet (RowSet &&)=default
 
RowSetoperator= (RowSet &&)=default
 
 RowSet (RowSet const &)=default
 
RowSetoperator= (RowSet const &)=default
 
template<typename... Arg>
 RowSet (Arg &&... a)
 
void Append (RowRange range)
 Add range to the set. More...
 
template<typename T >
void Append (T &&row_key)
 Add row_key to the set, minimize copies when possible. More...
 
RowSet Intersect (bigtable::RowRange const &range) const
 Modify this object to contain the ranges and keys inside range. More...
 
bool IsEmpty () const
 Returns true if the set is empty. More...
 
::google::bigtable::v2::RowSet const & as_proto () const &
 
::google::bigtable::v2::RowSet && as_proto () &&
 

Friends

bool operator== (RowSet const &a, RowSet const &b) noexcept
 
bool operator!= (RowSet const &a, RowSet const &b) noexcept
 

Detailed Description

Represent a (possibly non-continuous) set of row keys.

Cloud Bigtable can scan non-continuous sets of rows, these sets can include a mix of specific row keys and ranges as defined by bigtable::RowRange.

Constructor & Destructor Documentation

◆ RowSet() [1/4]

google::cloud::bigtable::RowSet::RowSet ( )
default

Create an empty set.

◆ RowSet() [2/4]

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

◆ RowSet() [3/4]

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

◆ RowSet() [4/4]

template<typename... Arg>
google::cloud::bigtable::RowSet::RowSet ( Arg &&...  a)
inline

Member Function Documentation

◆ Append() [1/2]

void google::cloud::bigtable::RowSet::Append ( RowRange  range)
inline

Add range to the set.

◆ Append() [2/2]

template<typename T >
void google::cloud::bigtable::RowSet::Append ( T &&  row_key)
inline

Add row_key to the set, minimize copies when possible.

◆ as_proto() [1/2]

::google::bigtable::v2::RowSet && google::cloud::bigtable::RowSet::as_proto ( ) &&
inline

◆ as_proto() [2/2]

::google::bigtable::v2::RowSet const & google::cloud::bigtable::RowSet::as_proto ( ) const &
inline

◆ Intersect()

RowSet google::cloud::bigtable::RowSet::Intersect ( bigtable::RowRange const &  range) const

Modify this object to contain the ranges and keys inside range.

This function removes any rowkeys outside range, it removes any row ranges that do not intersect with range, and keeps only the intersection for those ranges that do intersect range.

◆ IsEmpty()

bool google::cloud::bigtable::RowSet::IsEmpty ( ) const

Returns true if the set is empty.

A row set is empty iff passing it to a ReadRows call would never cause it to return rows. This is true if the set consists of only empty ranges.

Note that a default constructed RowSet is not empty, since it matches all rows in the table.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Friends And Related Function Documentation

◆ operator!=

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

◆ operator==

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