if the stream is interrupted due to a failure the StatusOr<spanner::Row> contains the error. The function returns a successful StatusOr<> with an empty spanner::Row to indicate end-of-stream.
Metadata()
Returns metadata about the result set, such as the field types and the transaction id created by the request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This document provides reference information for the `ResultSourceInterface` class within the Google Cloud Spanner C++ client library, spanning versions from 2.11.0 to the latest release candidate 2.37.0-rc."],["The `ResultSourceInterface` defines how `RowStream` implementations, used to handle streams of data from Spanner, will work, specifically for results received from `spanner::Client::Read()` or `spanner::Client::ExecuteQuery()`."],["The `NextRow()` function retrieves the next row from the data stream, returning a `StatusOr\u003cspanner::Row\u003e` which either contains the next row or an error status if the stream fails, or a successful `StatusOr` with an empty row if the stream ends."],["`Metadata()` returns an optional `google::spanner::v1::ResultSetMetadata` object, providing information like field types and the transaction ID from the request."],["`Stats()` returns an optional `google::spanner::v1::ResultSetStats` object, which gives statistical data such as row count and the query plan used."]]],[]]