Google Cloud Spanner C++ Client
1.32.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 | |
class | QueryPartitionTester |
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::PartitionSql
. Once created, QueryPartition
objects can be serialized, transmitted to separate process, and used to read data in parallel using Client::ExecuteQuery
.
Definition at line 86 of file query_partition.h.
|
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
.
Definition at line 105 of file query_partition.h.
|
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 |
Definition at line 71 of file query_partition.cc.
|
friend |
Definition at line 110 of file query_partition.h.
|
friend |
Definition at line 34 of file query_partition.cc.
|
friend |
Definition at line 116 of file query_partition.h.
|
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. |
Definition at line 42 of file query_partition.cc.