Class RowRange (2.31.0)

Define the interfaces to create row key ranges.

Example:

// Create a range for the keys starting with the given prefix.
auto range = bigtable::RowRange::StartingAt("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.

Parameters
Name Description
prefix T &&
typename T
Returns
Type Description
RowRange