Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
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 | |
RowSet & | operator= (RowSet &&)=default |
RowSet (RowSet const &)=default | |
RowSet & | operator= (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 |
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
.
|
default |
Create an empty set.
|
default |
|
default |
|
inline |
|
inline |
Add range
to the set.
|
inline |
Add row_key
to the set, minimize copies when possible.
|
inline |
|
inline |
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
.
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.