15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_DATA_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGTABLE_DATA_CONNECTION_H
18#include "google/cloud/bigtable/filters.h"
19#include "google/cloud/bigtable/internal/bigtable_stub.h"
20#include "google/cloud/bigtable/mutation_branch.h"
21#include "google/cloud/bigtable/mutations.h"
22#include "google/cloud/bigtable/row.h"
23#include "google/cloud/bigtable/row_key_sample.h"
24#include "google/cloud/bigtable/row_reader.h"
25#include "google/cloud/bigtable/row_set.h"
26#include "google/cloud/backoff_policy.h"
27#include "google/cloud/options.h"
28#include "google/cloud/status_or.h"
29#include "google/cloud/stream_range.h"
30#include "google/cloud/version.h"
35namespace bigtable_internal {
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
40GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
43GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
107 std::int64_t rows_limit,
Filter filter);
111 virtual StatusOr<std::pair<
bool,
Row>>
ReadRow(std::string
const& table_name,
116 std::string
const& table_name, std::string row_key,
Filter filter,
117 std::vector<
Mutation> true_mutations,
118 std::vector<
Mutation> false_mutations);
121 std::string
const& table_name, std::string row_key,
Filter filter,
122 std::vector<
Mutation> true_mutations,
123 std::vector<
Mutation> false_mutations);
126 std::string
const& table_name);
129 std::string
const& table_name);
132 google::bigtable::v2::ReadModifyWriteRowRequest request);
135 google::bigtable::v2::ReadModifyWriteRowRequest request);
139 std::function<
void(
Status)> on_finish,
140 RowSet row_set, std::int64_t rows_limit,
144 std::string
const& table_name, std::string row_key,
Filter filter);
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
175GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Represent a set of mutations across multiple rows.
Definition: mutations.h:492
A connection to the Cloud Bigtable Data API.
Definition: data_connection.h:88
virtual StatusOr< MutationBranch > CheckAndMutateRow(std::string const &table_name, std::string row_key, Filter filter, std::vector< Mutation > true_mutations, std::vector< Mutation > false_mutations)
virtual Options options()
Definition: data_connection.h:92
virtual StatusOr< Row > ReadModifyWriteRow(google::bigtable::v2::ReadModifyWriteRowRequest request)
virtual ~DataConnection()=0
virtual future< StatusOr< std::vector< RowKeySample > > > AsyncSampleRows(std::string const &table_name)
virtual future< std::vector< FailedMutation > > AsyncBulkApply(std::string const &table_name, BulkMutation mut)
virtual future< Status > AsyncApply(std::string const &table_name, SingleRowMutation mut)
virtual RowReader ReadRowsFull(ReadRowsParams params)
virtual Status Apply(std::string const &table_name, SingleRowMutation mut)
virtual future< StatusOr< Row > > AsyncReadModifyWriteRow(google::bigtable::v2::ReadModifyWriteRowRequest request)
virtual StatusOr< std::vector< RowKeySample > > SampleRows(std::string const &table_name)
virtual future< StatusOr< std::pair< bool, Row > > > AsyncReadRow(std::string const &table_name, std::string row_key, Filter filter)
virtual future< StatusOr< MutationBranch > > AsyncCheckAndMutateRow(std::string const &table_name, std::string row_key, Filter filter, std::vector< Mutation > true_mutations, std::vector< Mutation > false_mutations)
virtual RowReader ReadRows(std::string const &table_name, RowSet row_set, std::int64_t rows_limit, Filter filter)
Prefer to use ReadRowsFull() in mocks.
virtual std::vector< FailedMutation > BulkApply(std::string const &table_name, BulkMutation mut)
virtual void AsyncReadRows(std::string const &table_name, std::function< future< bool >(Row)> on_row, std::function< void(Status)> on_finish, RowSet row_set, std::int64_t rows_limit, Filter filter)
virtual StatusOr< std::pair< bool, Row > > ReadRow(std::string const &table_name, std::string row_key, Filter filter)
A SingleRowMutation that failed.
Definition: mutations.h:409
Define the interfaces to create filter expressions.
Definition: filters.h:52
static Filter PassAllFilter()
Return a filter that passes on all data.
Definition: filters.h:71
Object returned by Table::ReadRows(), enumerates rows in the response.
Definition: row_reader.h:54
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
Represent a single row mutation.
Definition: mutations.h:296
friend friend class future
Contains all the Cloud Bigtable C++ client APIs.
Definition: admin_client.h:28
std::shared_ptr< DataConnection > MakeDataConnection(Options options={})
Returns a DataConnection object that can be used for interacting with the Cloud Bigtable Data API.
MutationBranch
The branch taken by a Table::CheckAndMutateRow operation.
Definition: mutation_branch.h:26
Represent a single change to a specific row in a Table.
Definition: mutations.h:45
Wrap the arguments to ReadRows().
Definition: data_connection.h:46
std::int64_t rows_limit
Definition: data_connection.h:50
RowSet row_set
Definition: data_connection.h:49
std::string table_name
Definition: data_connection.h:47
Filter filter
Definition: data_connection.h:51
std::string app_profile_id
Definition: data_connection.h:48
A simple wrapper to represent the response from Table::SampleRowKeys().
Definition: row_key_sample.h:27