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-05 UTC."],[[["This document outlines the `RowRange` class in the Google Cloud Bigtable C++ client library, providing a comprehensive guide to its functionality and usage across multiple versions, from 2.11.0 to 2.37.0-rc."],["The `RowRange` class enables the definition of row key ranges, using constructors, operators, and static functions for various types of intervals, including open, closed, left-open, and right-open, as well as defining ranges by prefixes or infinite bounds."],["Key functions of the `RowRange` class include `IsEmpty()`, which checks if the range contains any valid keys, `Contains()` to verify if a key falls within the range, `Intersect()` to find the intersection of two ranges, and `as_proto()` to retrieve the underlying protobuf representation."],["Static functions like `InfiniteRange()`, `StartingAt()`, `EndingAt()`, `Empty()`, `Range()`, and `Prefix()` allow for creating specific types of `RowRange` objects, such as unbounded ranges, prefix-based ranges, and empty ranges."],["The example provided demonstrates how to create a range for keys starting with a given prefix using `bigtable::RowRange(\"foo/\")`, showcasing a practical application of the class."]]],[]]