Class RowStream (2.19.0)

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.

Constructors

RowStream()

RowStream(std::unique_ptr< ResultSourceInterface >)

Parameter
NameDescription
source std::unique_ptr< ResultSourceInterface >

RowStream(RowStream &&)

Parameter
NameDescription
RowStream &&

Operators

operator=(RowStream &&)

Parameter
NameDescription
RowStream &&
Returns
TypeDescription
RowStream &

Functions

begin()

Returns a RowStreamIterator defining the beginning of this range.

Returns
TypeDescription
RowStreamIterator

end()

Returns a RowStreamIterator defining the end of this range.

Returns
TypeDescription
RowStreamIterator

RowsModified() const

Returns the number of rows modified by a DML statement.

Returns
TypeDescription
std::int64_t

ReadTimestamp() const

Retrieves the timestamp at which the read occurred.

Returns
TypeDescription
absl::optional< Timestamp >