Class ReadPartition (2.21.0)

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.

Constructors

ReadPartition(ReadPartition const &)

Copy and move.

Parameter
NameDescription
ReadPartition const &

ReadPartition(ReadPartition &&)

Copy and move.

Parameter
NameDescription
ReadPartition &&

ReadPartition()

Constructs an instance of ReadPartition that does not specify any table or columns to be read.

Operators

operator=(ReadPartition const &)

Copy and move.

Parameter
NameDescription
ReadPartition const &
Returns
TypeDescription
ReadPartition &

operator=(ReadPartition &&)

Copy and move.

Parameter
NameDescription
ReadPartition &&
Returns
TypeDescription
ReadPartition &

Functions

TableName() const

Returns
TypeDescription
std::string

ColumnNames() const

Returns
TypeDescription
std::vector< std::string >

ReadOptions() const

Returns
TypeDescription
google::cloud::spanner::ReadOptions