@@ -42,6 +42,13 @@ class DataConnectionImpl : public bigtable::DataConnection {
4242 std::shared_ptr<MutateRowsLimiter> limiter,
4343 Options options);
4444
45+ // This constructor is used for testing.
46+ DataConnectionImpl (
47+ std::unique_ptr<BackgroundThreads> background,
48+ std::shared_ptr<BigtableStub> stub,
49+ std::unique_ptr<OperationContextFactory> operation_context_factory,
50+ std::shared_ptr<MutateRowsLimiter> limiter, Options options);
51+
4552 Options options () override { return options_; }
4653
4754 Status Apply (std::string const & table_name,
@@ -95,9 +102,17 @@ class DataConnectionImpl : public bigtable::DataConnection {
95102 bigtable::Filter filter) override ;
96103
97104 private:
98- std::unique_ptr<OperationContextFactory> operation_context_factory_;
105+ void AsyncReadRowsHelper (std::string const & table_name,
106+ std::function<future<bool >(bigtable::Row)> on_row,
107+ std::function<void(Status)> on_finish,
108+ bigtable::RowSet row_set, std::int64_t rows_limit,
109+ bigtable::Filter filter,
110+ internal::ImmutableOptions const & current,
111+ std::shared_ptr<OperationContext> operation_context);
112+
99113 std::unique_ptr<BackgroundThreads> background_;
100114 std::shared_ptr<BigtableStub> stub_;
115+ std::unique_ptr<OperationContextFactory> operation_context_factory_;
101116 std::shared_ptr<MutateRowsLimiter> limiter_;
102117 Options options_;
103118};
0 commit comments