Class RowStream (2.27.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
Name Description
source std::unique_ptr< ResultSourceInterface >

RowStream(RowStream &&)

Parameter
Name Description
RowStream &&

Operators

operator=(RowStream &&)

Parameter
Name Description
RowStream &&
Returns
Type Description
RowStream &

Functions

begin()

Returns a RowStreamIterator defining the beginning of this range.

Returns
Type Description
RowStreamIterator

end()

Returns a RowStreamIterator defining the end of this range.

Returns
Type Description
RowStreamIterator

RowsModified() const

Returns the number of rows modified by a DML statement.

Returns
Type Description
std::int64_t

ReadTimestamp() const

Retrieves the timestamp at which the read occurred.

Returns
Type Description
absl::optional< Timestamp >