15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ROW_SET_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ROW_SET_H
18#include "google/cloud/bigtable/row_range.h"
19#include "google/cloud/bigtable/version.h"
20#include <google/protobuf/util/message_differencer.h>
25GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
28
29
30
31
32
44 return google::protobuf::util::MessageDifferencer::Equivalent(a.row_set_,
51 template <
typename... Arg>
53 AppendAll(std::forward<Arg&&>(a)...);
58 *row_set_.add_row_ranges() = std::move(range)
.as_proto();
62
63
66 *row_set_.add_row_keys() = std::forward<T>(row_key);
70
71
72
73
74
75
79
80
81
82
83
84
85
86
87
90 ::
google::bigtable::v2::RowSet
const&
as_proto()
const& {
return row_set_; }
91 ::
google::bigtable::v2::RowSet&&
as_proto() && {
return std::move(row_set_); }
95 template <
typename H,
typename... Tail>
96 void AppendAll(H&& head, Tail&&... a) {
99 Append(std::forward<H>(head));
100 AppendAll(std::forward<Tail>(a)...);
106 ::
google::bigtable::v2::RowSet row_set_;
108GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Define the interfaces to create row key ranges.
Definition: row_range.h:38
::google::bigtable::v2::RowRange && as_proto() &&
Move out the underlying protobuf value.
Definition: row_range.h:167
Represent a (possibly non-continuous) set of row keys.
Definition: row_set.h:33
::google::bigtable::v2::RowSet const & as_proto() const &
Definition: row_set.h:90
bool IsEmpty() const
Returns true if the set is empty.
void Append(T &&row_key)
Add row_key to the set, minimize copies when possible.
Definition: row_set.h:65
RowSet & operator=(RowSet const &)=default
RowSet(RowSet &&)=default
RowSet & operator=(RowSet &&)=default
RowSet(Arg &&... a)
Definition: row_set.h:52
void Append(RowRange range)
Add range to the set.
Definition: row_set.h:57
RowSet()=default
Create an empty set.
RowSet Intersect(bigtable::RowRange const &range) const
Modify this object to contain the ranges and keys inside range.
friend bool operator!=(RowSet const &a, RowSet const &b) noexcept
Definition: row_set.h:47
RowSet(RowSet const &)=default
friend bool operator==(RowSet const &a, RowSet const &b) noexcept
Definition: row_set.h:43
::google::bigtable::v2::RowSet && as_proto() &&
Definition: row_set.h:91
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28