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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eResultSourceInterface\u003c/code\u003e in the Google Cloud Spanner C++ library, with version 2.37.0-rc being the latest and 2.28.0 the default displayed.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResultSourceInterface\u003c/code\u003e defines how \u003ccode\u003eRowStream\u003c/code\u003e implementations work, which represent streams of \u003ccode\u003eRows\u003c/code\u003e from \u003ccode\u003espanner::Client::Read()\u003c/code\u003e or \u003ccode\u003espanner::Client::ExecuteQuery()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNextRow()\u003c/code\u003e function is used to get the next row in the stream, returning either a row or an error \u003ccode\u003eStatusOr\u003c/code\u003e, with an empty row indicating the stream's end.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetadata()\u003c/code\u003e returns the result set's metadata, such as field types and transaction ID, and \u003ccode\u003eStats()\u003c/code\u003e provides statistics, like the number of rows and query plan.\u003c/p\u003e\n"],["\u003cp\u003eThe page includes an extensive list of links to the documentation for \u003ccode\u003eResultSourceInterface\u003c/code\u003e across different versions, including versions 2.11.0 through 2.37.0-rc.\u003c/p\u003e\n"]]],[],null,[]]