Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
|
The ReadPartition
class is a regular type that represents a single slice of a parallel Read operation.
More...
#include <google/cloud/spanner/read_partition.h>
Public Member Functions | |
ReadPartition ()=default | |
Constructs an instance of ReadPartition that does not specify any table or columns to be read. More... | |
std::string | TableName () const |
std::vector< std::string > | ColumnNames () const |
google::cloud::spanner::ReadOptions | ReadOptions () const |
Copy and move. | |
ReadPartition (ReadPartition const &)=default | |
ReadPartition (ReadPartition &&)=default | |
ReadPartition & | operator= (ReadPartition const &)=default |
ReadPartition & | operator= (ReadPartition &&)=default |
Friends | |
StatusOr< std::string > | SerializeReadPartition (ReadPartition const &read_partition) |
Serializes an instance of ReadPartition to a string of bytes. More... | |
StatusOr< ReadPartition > | DeserializeReadPartition (std::string const &serialized_read_partition) |
Deserializes the provided string into a ReadPartition . More... | |
Equality | |
bool | operator== (ReadPartition const &lhs, ReadPartition const &rhs) |
bool | operator!= (ReadPartition const &lhs, ReadPartition const &rhs) |
The ReadPartition
class is a regular type that represents a single slice of a parallel Read operation.
Instances of ReadPartition
are created by Client::PartitionRead
. Once created, ReadPartition
objects can be serialized, transmitted to separate processes, and used to read data in parallel using Client::Read
. 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 ReadPartition
that does not specify any table or columns to be read.
|
default |
|
default |
|
inline |
|
default |
|
default |
google::cloud::spanner::ReadOptions google::cloud::spanner::ReadPartition::ReadOptions | ( | ) | const |
|
inline |
|
friend |
Deserializes the provided string into a ReadPartition
.
The serialized_read_partition
argument must be a string that was previously returned by a call to SerializeReadPartition()
.
serialized_read_partition | - string representation to be deserialized. |
|
friend |
|
friend |
|
friend |
Serializes an instance of ReadPartition
to a string of bytes.
The serialized string of bytes is suitable for writing to disk or transmission to another process.
read_partition | - instance to be serialized. |