Google Cloud Spanner C++ Client
1.32.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 | |
class | ReadPartitionTester |
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 process, and used to read data in parallel using Client::Read
.
Definition at line 87 of file read_partition.h.
|
default |
Constructs an instance of ReadPartition
that does not specify any table or columns to be read.
|
default |
|
default |
|
inline |
Definition at line 105 of file read_partition.h.
|
default |
|
default |
google::cloud::spanner::ReadOptions google::cloud::spanner::v1::ReadPartition::ReadOptions | ( | ) | const |
Definition at line 66 of file read_partition.cc.
|
inline |
Definition at line 103 of file read_partition.h.
|
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. |
Definition at line 110 of file read_partition.cc.
|
friend |
Definition at line 96 of file read_partition.cc.
|
friend |
Definition at line 91 of file read_partition.cc.
|
friend |
Definition at line 119 of file read_partition.h.
|
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. |
Definition at line 100 of file read_partition.cc.