Example: ```cpp
// Create a range for the keys starting with the given prefix.
auto range = bigtable::RowRange("foo/");
Constructors
RowRange(::google::bigtable::v2::RowRange)
Parameter
Name
Description
rhs
::google::bigtable::v2::RowRange
RowRange(RowRange &&)
Parameter
Name
Description
RowRange &&
RowRange(RowRange const &)
Parameter
Name
Description
RowRange const &
Operators
operator=(RowRange &&)
Parameter
Name
Description
RowRange &&
Returns
Type
Description
RowRange &
operator=(RowRange const &)
Parameter
Name
Description
RowRange const &
Returns
Type
Description
RowRange &
Functions
static RightOpen(T &&, U &&)
Return a range representing the interval (begin, end].
Return a range representing the interval [begin, end).
Parameters
Name
Description
begin
T &&
end
U &&
typename T
typename U
Returns
Type
Description
RowRange
static LeftOpen(T &&, U &&)
Return a range representing the interval (begin, end].
Return a range representing the interval [begin, end).
Parameters
Name
Description
begin
T &&
end
U &&
typename T
typename U
Returns
Type
Description
RowRange
static Open(T &&, U &&)
Return a range representing the interval (begin, end).
Return a range representing the interval [begin, end).
Parameters
Name
Description
begin
T &&
end
U &&
typename T
typename U
Returns
Type
Description
RowRange
static Closed(T &&, U &&)
Return a range representing the interval [begin, end].
Return a range representing the interval [begin, end).
Parameters
Name
Description
begin
T &&
end
U &&
typename T
typename U
Returns
Type
Description
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.
Returns
Type
Description
bool
Contains(T const &) const
Return true if key is in the range.
Parameters
Name
Description
key
T const &
typename T
Returns
Type
Description
bool
Intersect(RowRange const &) const
Compute the intersection against another RowRange.
Parameter
Name
Description
range
RowRange const &
Returns
Type
Description
std::pair< bool, RowRange >
a 2-tuple, the first element is a boolean, with value 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.
as_proto() const &
Return the filter expression as a protobuf.
Returns
Type
Description
::google::bigtable::v2::RowRange const &
as_proto() &&
Move out the underlying protobuf value.
Returns
Type
Description
::google::bigtable::v2::RowRange &&
static InfiniteRange()
Return the infinite range, i.e., a range including all possible keys.
Returns
Type
Description
RowRange
static StartingAt(T &&)
Return the range starting at begin (included), with no upper limit.
Parameters
Name
Description
begin
T &&
typename T
Returns
Type
Description
RowRange
static EndingAt(T &&)
Return the range ending at end (included), with no lower limit.
Parameters
Name
Description
end
T &&
typename T
Returns
Type
Description
RowRange
static Empty()
Return an empty range.
Returns
Type
Description
RowRange
static Range(T &&, U &&)
Return the range representing the interval [begin, end).
Parameters
Name
Description
begin
T &&
end
U &&
typename T
typename U
Returns
Type
Description
RowRange
static Prefix(T &&)
Return a range that contains all the keys starting with prefix.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This page details the `RowRange` class within the Google Cloud Bigtable C++ library, focusing on its role in defining row key intervals."],["The `RowRange` class offers various constructors and operators, enabling users to create ranges using different methods, including `RowRange(::google::bigtable::v2::RowRange)`, `RowRange(RowRange &&)`, `RowRange(RowRange const &)`, `operator=(RowRange &&)`, and `operator=(RowRange const &)`."],["Static functions such as `RightOpen`, `LeftOpen`, `Open`, `Closed`, `InfiniteRange`, `StartingAt`, `EndingAt`, `Empty`, `Range`, and `Prefix` are available to define various types of row key ranges with different boundary conditions, including empty and infinite."],["The class provides methods like `IsEmpty()`, `Contains(T const &)`, and `Intersect(RowRange const &)` to check if a range is empty, determine if a key falls within a range, and compute the intersection with another `RowRange`, respectively."],["Users can retrieve the `RowRange` filter expression as a protobuf using `as_proto() const &`, or move out the underlying protobuf value with `as_proto() &&`."]]],[]]