Class RowRange (2.22.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("foo/");

Constructors

RowRange(::google::bigtable::v2::RowRange)

Parameter
NameDescription
rhs ::google::bigtable::v2::RowRange

RowRange(RowRange &&)

Parameter
NameDescription
RowRange &&

RowRange(RowRange const &)

Parameter
NameDescription
RowRange const &

Operators

operator=(RowRange &&)

Parameter
NameDescription
RowRange &&
Returns
TypeDescription
RowRange &

operator=(RowRange const &)

Parameter
NameDescription
RowRange const &
Returns
TypeDescription
RowRange &

Functions

static RightOpen(T &&, U &&)

Return a range representing the interval (begin, end].

Return a range representing the interval [begin, end).

Parameters
NameDescription
begin T &&
end U &&
typename T
typename U
Returns
TypeDescription
RowRange

static LeftOpen(T &&, U &&)

Return a range representing the interval (begin, end].

Return a range representing the interval [begin, end).

Parameters
NameDescription
begin T &&
end U &&
typename T
typename U
Returns
TypeDescription
RowRange

static Open(T &&, U &&)

Return a range representing the interval (begin, end).

Return a range representing the interval [begin, end).

Parameters
NameDescription
begin T &&
end U &&
typename T
typename U
Returns
TypeDescription
RowRange

static Closed(T &&, U &&)

Return a range representing the interval [begin, end].

Return a range representing the interval [begin, end).

Parameters
NameDescription
begin T &&
end U &&
typename T
typename U
Returns
TypeDescription
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
TypeDescription
bool

Contains(T const &) const

Return true if key is in the range.

Parameters
NameDescription
key T const &
typename T
Returns
TypeDescription
bool

Intersect(RowRange const &) const

Compute the intersection against another RowRange.

Parameter
NameDescription
range RowRange const &
Returns
TypeDescription
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
TypeDescription
::google::bigtable::v2::RowRange const &

as_proto() &&

Move out the underlying protobuf value.

Returns
TypeDescription
::google::bigtable::v2::RowRange &&

static InfiniteRange()

Return the infinite range, i.e., a range including all possible keys.

Returns
TypeDescription
RowRange

static StartingAt(T &&)

Return the range starting at begin (included), with no upper limit.

Parameters
NameDescription
begin T &&
typename T
Returns
TypeDescription
RowRange

static EndingAt(T &&)

Return the range ending at end (included), with no lower limit.

Parameters
NameDescription
end T &&
typename T
Returns
TypeDescription
RowRange

static Empty()

Return an empty range.

Returns
TypeDescription
RowRange

static Range(T &&, U &&)

Return the range representing the interval [begin, end).

Parameters
NameDescription
begin T &&
end U &&
typename T
typename U
Returns
TypeDescription
RowRange

static Prefix(T &&)

Return a range that contains all the keys starting with prefix.

Parameters
NameDescription
prefix T &&
typename T
Returns
TypeDescription
RowRange