Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Define the interfaces to create row key ranges. More...
#include <google/cloud/bigtable/row_range.h>
Public Member Functions | |
RowRange (::google::bigtable::v2::RowRange rhs) | |
RowRange (RowRange &&)=default | |
RowRange & | operator= (RowRange &&)=default |
RowRange (RowRange const &)=default | |
RowRange & | operator= (RowRange const &)=default |
bool | IsEmpty () const |
Return true if the range is empty. More... | |
template<typename T > | |
bool | Contains (T const &key) const |
Return true if key is in the range. More... | |
std::pair< bool, RowRange > | Intersect (RowRange const &range) const |
Compute the intersection against another RowRange. More... | |
::google::bigtable::v2::RowRange const & | as_proto () const & |
Return the filter expression as a protobuf. More... | |
::google::bigtable::v2::RowRange && | as_proto () && |
Move out the underlying protobuf value. More... | |
Static Public Member Functions | |
static RowRange | InfiniteRange () |
Return the infinite range, i.e., a range including all possible keys. More... | |
template<typename T > | |
static RowRange | StartingAt (T &&begin) |
Return the range starting at begin (included), with no upper limit. More... | |
template<typename T > | |
static RowRange | EndingAt (T &&end) |
Return the range ending at end (included), with no lower limit. More... | |
static RowRange | Empty () |
Return an empty range. More... | |
template<typename T , typename U > | |
static RowRange | Range (T &&begin, U &&end) |
Return the range representing the interval [begin , end ). More... | |
template<typename T > | |
static RowRange | Prefix (T &&prefix) |
Return a range that contains all the keys starting with prefix . More... | |
Less common, yet sometimes useful, ranges. | |
Return a range representing the interval [ | |
template<typename T , typename U > | |
static RowRange | RightOpen (T &&begin, U &&end) |
Return a range representing the interval (begin , end ]. More... | |
template<typename T , typename U > | |
static RowRange | LeftOpen (T &&begin, U &&end) |
Return a range representing the interval (begin , end ]. More... | |
template<typename T , typename U > | |
static RowRange | Open (T &&begin, U &&end) |
Return a range representing the interval (begin , end ). More... | |
template<typename T , typename U > | |
static RowRange | Closed (T &&begin, U &&end) |
Return a range representing the interval [begin , end ]. More... | |
Define the interfaces to create row key ranges.
Example:
|
inlineexplicit |
|
default |
|
default |
|
inline |
Move out the underlying protobuf value.
|
inline |
Return the filter expression as a protobuf.
|
inlinestatic |
Return a range representing the interval [begin
, end
].
|
inline |
Return true if key
is in the range.
|
inlinestatic |
Return an empty range.
|
inlinestatic |
Return the range ending at end
(included), with no lower limit.
|
inlinestatic |
Return the infinite range, i.e., a range including all possible keys.
std::pair< bool, RowRange > google::cloud::bigtable::RowRange::Intersect | ( | RowRange const & | range | ) | const |
Compute the intersection against another RowRange.
true
if there is some intersection, the second element is the intersection. If there is no intersection the first element is false
and the second element has a valid, but unspecified value. bool google::cloud::bigtable::RowRange::IsEmpty | ( | ) | const |
Return true if the range is empty.
Note that some ranges (such as ["", ""]
) are not empty but only include invalid row keys.
|
inlinestatic |
Return a range representing the interval (begin
, end
].
|
inlinestatic |
Return a range representing the interval (begin
, end
).
|
inlinestatic |
Return a range that contains all the keys starting with prefix
.
|
inlinestatic |
Return the range representing the interval [begin
, end
).
|
inlinestatic |
Return a range representing the interval (begin
, end
].
|
inlinestatic |
Return the range starting at begin
(included), with no upper limit.