Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
The QueryPartition
class is a regular type that represents a single slice of a parallel SQL read.
More...
#include <google/cloud/spanner/query_partition.h>
Public Member Functions | |
QueryPartition ()=default | |
Constructs an instance of QueryPartition that is not associated with any SqlStatement . More... | |
SqlStatement const & | sql_statement () const |
Accessor for the SqlStatement associated with this QueryPartition . More... | |
Copy and move | |
QueryPartition (QueryPartition const &)=default | |
QueryPartition (QueryPartition &&)=default | |
QueryPartition & | operator= (QueryPartition const &)=default |
QueryPartition & | operator= (QueryPartition &&)=default |
Friends | |
StatusOr< std::string > | SerializeQueryPartition (QueryPartition const &query_partition) |
Serializes an instance of QueryPartition to a string of bytes. More... | |
StatusOr< QueryPartition > | DeserializeQueryPartition (std::string const &serialized_query_partition) |
Deserializes the provided string into a QueryPartition . More... | |
Equality | |
bool | operator== (QueryPartition const &a, QueryPartition const &b) |
bool | operator!= (QueryPartition const &a, QueryPartition const &b) |
The QueryPartition
class is a regular type that represents a single slice of a parallel SQL read.
Instances of QueryPartition
are created by Client::PartitionQuery
. Once created, QueryPartition
objects can be serialized, transmitted to separate processes, and used to read data in parallel using Client::ExecuteQuery
. If data_boost
is set, those requests will be executed using the independent compute resources of Cloud Spanner Data Boost.
|
default |
Constructs an instance of QueryPartition
that is not associated with any SqlStatement
.
|
default |
|
default |
|
default |
|
default |
|
inline |
Accessor for the SqlStatement
associated with this QueryPartition
.
|
friend |
Deserializes the provided string into a QueryPartition
.
The serialized_query_partition
argument must be a string that was previously returned by a call to SerializeQueryPartition()
.
serialized_query_partition |
|
friend |
|
friend |
|
friend |
Serializes an instance of QueryPartition
to a string of bytes.
The serialized string of bytes is suitable for writing to disk or transmission to another process.
query_partition | - instance to be serialized. |