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 document provides reference information for the \u003ccode\u003eResultSourceInterface\u003c/code\u003e class within the Google Cloud Spanner C++ client library, spanning versions from 2.11.0 to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResultSourceInterface\u003c/code\u003e defines how \u003ccode\u003eRowStream\u003c/code\u003e implementations, used to handle streams of data from Spanner, will work, specifically for results received from \u003ccode\u003espanner::Client::Read()\u003c/code\u003e or \u003ccode\u003espanner::Client::ExecuteQuery()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNextRow()\u003c/code\u003e function retrieves the next row from the data stream, returning a \u003ccode\u003eStatusOr<spanner::Row>\u003c/code\u003e which either contains the next row or an error status if the stream fails, or a successful \u003ccode\u003eStatusOr\u003c/code\u003e with an empty row if the stream ends.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMetadata()\u003c/code\u003e returns an optional \u003ccode\u003egoogle::spanner::v1::ResultSetMetadata\u003c/code\u003e object, providing information like field types and the transaction ID from the request.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStats()\u003c/code\u003e returns an optional \u003ccode\u003egoogle::spanner::v1::ResultSetStats\u003c/code\u003e object, which gives statistical data such as row count and the query plan used.\u003c/p\u003e\n"]]],[],null,[]]