Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Object returned by Table::ReadRows(), enumerates rows in the response. More...
#include <google/cloud/bigtable/row_reader.h>
Public Types | |
using | iterator = StreamRange< Row >::iterator |
Public Member Functions | |
RowReader () | |
Default constructs an empty RowReader. More... | |
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) | |
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 (RowReader &&)=default | |
~RowReader ()=default | |
iterator | begin () |
Input iterator over rows in the response. More... | |
iterator | end () |
End iterator over the rows in the response. More... | |
void | Cancel () |
Gracefully terminate a streaming read. More... | |
Static Public Attributes | |
static std::int64_t constexpr | NO_ROWS_LIMIT = 0 |
A constant for the magic value that means "no limit, get all rows". More... | |
Object returned by Table::ReadRows(), enumerates rows in the response.
Iterate over the results of ReadRows() using the STL idioms.
using google::cloud::bigtable::RowReader::iterator = StreamRange<Row>::iterator |
google::cloud::bigtable::RowReader::RowReader | ( | ) |
Default constructs an empty RowReader.
google::cloud::bigtable::RowReader::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 | ||
) |
google::cloud::bigtable::RowReader::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 | ||
) |
|
default |
|
default |
iterator google::cloud::bigtable::RowReader::begin | ( | ) |
Input iterator over rows in the response.
The returned iterator is a single-pass input iterator that reads rows from the RowReader when incremented. The first row may be read when the iterator is constructed.
Creating, and particularly incrementing, multiple iterators on the same RowReader is unsupported and can produce incorrect results.
Retry and backoff policies are honored.
void google::cloud::bigtable::RowReader::Cancel | ( | ) |
Gracefully terminate a streaming read.
Invalidates iterators.
iterator google::cloud::bigtable::RowReader::end | ( | ) |
End iterator over the rows in the response.
|
staticconstexpr |
A constant for the magic value that means "no limit, get all rows".
Zero is used as a magic value that means "get all rows" in the Cloud Bigtable RPC protocol.