15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ROW_READER_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_ROW_READER_H
18#include "google/cloud/bigtable/data_client.h"
19#include "google/cloud/bigtable/filters.h"
20#include "google/cloud/bigtable/internal/readrowsparser.h"
21#include "google/cloud/bigtable/internal/row_reader_impl.h"
22#include "google/cloud/bigtable/metadata_update_policy.h"
23#include "google/cloud/bigtable/row_set.h"
24#include "google/cloud/bigtable/rpc_backoff_policy.h"
25#include "google/cloud/bigtable/rpc_retry_policy.h"
26#include "google/cloud/bigtable/version.h"
27#include "google/cloud/internal/call_context.h"
28#include "google/cloud/stream_range.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
35GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
37namespace bigtable_internal {
38GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
43GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
46
47
48
49
50
51
52
53
57
58
59
60
61
74 std::unique_ptr<internal::ReadRowsParserFactory> parser_factory);
78 std::string table_name,
RowSet row_set, std::int64_t rows_limit,
82 std::unique_ptr<internal::ReadRowsParserFactory> parser_factory);
88 using iterator = StreamRange<
Row>::iterator;
91
92
93
94
95
96
97
98
99
100
101
102
109
110
111
112
116 friend RowReader bigtable_internal::MakeRowReader(
117 std::shared_ptr<bigtable_internal::RowReaderImpl>);
118 explicit RowReader(std::shared_ptr<bigtable_internal::RowReaderImpl> impl)
119 : impl_(std::move(impl)) {}
121 google::
cloud::internal::CallContext call_context_;
122 StreamRange<
Row> stream_;
123 std::shared_ptr<bigtable_internal::RowReaderImpl> impl_;
126GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
128namespace bigtable_internal {
129GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
135GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Connects to Cloud Bigtable's data manipulation APIs.
Definition: data_client.h:66
Define the interfaces to create filter expressions.
Definition: filters.h:52
Define the interface for controlling how the Bigtable client backsoff from failed RPC operations.
Definition: rpc_backoff_policy.h:44
Define the interface for controlling how the Bigtable client retries RPC operations.
Definition: rpc_retry_policy.h:78
Object returned by Table::ReadRows(), enumerates rows in the response.
Definition: row_reader.h:54
void Cancel()
Gracefully terminate a streaming read.
RowReader(RowReader &&)=default
RowReader()
Default constructs an empty RowReader.
iterator begin()
Input iterator over rows in the response.
iterator end()
End iterator over the rows in the response.
RowReader(std::shared_ptr< DataClient > client, std::string app_profile_id, std::string table_name, RowSet row_set, std::int64_t rows_limit, Filter filter, std::unique_ptr< RPCRetryPolicy > retry_policy, std::unique_ptr< RPCBackoffPolicy > backoff_policy, MetadataUpdatePolicy metadata_update_policy, std::unique_ptr< internal::ReadRowsParserFactory > parser_factory)
RowReader(std::shared_ptr< DataClient > client, std::string table_name, RowSet row_set, std::int64_t rows_limit, Filter filter, std::unique_ptr< RPCRetryPolicy > retry_policy, std::unique_ptr< RPCBackoffPolicy > backoff_policy, MetadataUpdatePolicy metadata_update_policy, std::unique_ptr< internal::ReadRowsParserFactory > parser_factory)
static std::int64_t constexpr NO_ROWS_LIMIT
A constant for the magic value that means "no limit, get all rows".
Definition: row_reader.h:63
Represent a (possibly non-continuous) set of row keys.
Definition: row_set.h:33
The in-memory representation of a Bigtable row.
Definition: row.h:34
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28
#define GOOGLE_CLOUD_CPP_BIGTABLE_ROW_READER_CTOR_DEPRECATED()
Definition: version.h:28