Google Cloud Spanner C++ Client
1.32.0
A C++ Client Library for Google Cloud Spanner
|
Represents the stream of Rows
returned from spanner::Client::Read()
or spanner::Client::ExecuteQuery()
.
More...
#include <google/cloud/spanner/results.h>
Public Member Functions | |
RowStream ()=default | |
RowStream (std::unique_ptr< spanner_internal::ResultSourceInterface > source) | |
RowStream (RowStream &&)=default | |
RowStream & | operator= (RowStream &&)=default |
RowStreamIterator | begin () |
Returns a RowStreamIterator defining the beginning of this range. More... | |
RowStreamIterator | end () |
Returns a RowStreamIterator defining the end of this range. More... | |
absl::optional< Timestamp > | ReadTimestamp () const |
Retrieves the timestamp at which the read occurred. More... | |
Represents the stream of Rows
returned from spanner::Client::Read()
or spanner::Client::ExecuteQuery()
.
This is a range defined by the Input Iterators returned from its begin()
and end()
members. Callers may directly iterate the RowStream
instance, which will return a sequence of StatusOr<Row>
objects.
For convenience, callers may wrap instances in a StreamOf<std::tuple<...>>
object, which will automatically parse each Row
into a std::tuple
with the specified types.
|
default |
|
inlineexplicit |
|
default |
|
inline |
Returns a RowStreamIterator
defining the beginning of this range.
|
inline |
Returns a RowStreamIterator
defining the end of this range.
absl::optional< Timestamp > google::cloud::spanner::v1::RowStream::ReadTimestamp | ( | ) | const |
Retrieves the timestamp at which the read occurred.
Definition at line 69 of file results.cc.