Google Cloud Spanner C++ Client
1.32.0
A C++ Client Library for Google Cloud Spanner
|
Represents the stream of Rows
and profile stats returned from spanner::Client::ProfileQuery()
.
More...
#include <google/cloud/spanner/results.h>
Public Member Functions | |
ProfileQueryResult ()=default | |
ProfileQueryResult (std::unique_ptr< spanner_internal::ResultSourceInterface > source) | |
ProfileQueryResult (ProfileQueryResult &&)=default | |
ProfileQueryResult & | operator= (ProfileQueryResult &&)=default |
RowStreamIterator | begin () |
Returns a RowStreamIterator defining the beginning of this result set. More... | |
RowStreamIterator | end () |
Returns a RowStreamIterator defining the end of this result set. More... | |
absl::optional< Timestamp > | ReadTimestamp () const |
Retrieves the timestamp at which the read occurred. More... | |
absl::optional< std::unordered_map< std::string, std::string > > | ExecutionStats () const |
Returns a collection of key value pair statistics for the SQL statement execution. More... | |
absl::optional< spanner::ExecutionPlan > | ExecutionPlan () const |
Returns the plan of execution for the SQL statement. More... | |
Represents the stream of Rows
and profile stats returned from spanner::Client::ProfileQuery()
.
This is a range defined by the Input Iterators returned from its begin()
and end()
members. Callers may directly iterate the ProfileQueryResult
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.
|
default |
|
inlineexplicit |
|
default |
|
inline |
Returns a RowStreamIterator
defining the beginning of this result set.
|
inline |
Returns a RowStreamIterator
defining the end of this result set.
absl::optional< spanner::ExecutionPlan > google::cloud::spanner::v1::ProfileQueryResult::ExecutionPlan | ( | ) | const |
Returns the plan of execution for the SQL statement.
Definition at line 90 of file results.cc.
absl::optional< std::unordered_map< std::string, std::string > > google::cloud::spanner::v1::ProfileQueryResult::ExecutionStats | ( | ) | const |
Returns a collection of key value pair statistics for the SQL statement execution.
Definition at line 86 of file results.cc.
|
default |
absl::optional< Timestamp > google::cloud::spanner::v1::ProfileQueryResult::ReadTimestamp | ( | ) | const |
Retrieves the timestamp at which the read occurred.
Definition at line 73 of file results.cc.