Class ReadPartition (2.34.0-rc)

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
Name Description
ReadPartition const &

ReadPartition(ReadPartition &&)

Copy and move.

Parameter
Name Description
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
Name Description
ReadPartition const &
Returns
Type Description
ReadPartition &

operator=(ReadPartition &&)

Copy and move.

Parameter
Name Description
ReadPartition &&
Returns
Type Description
ReadPartition &

Functions

TableName() const

Returns
Type Description
std::string

ColumnNames() const

Returns
Type Description
std::vector< std::string >

ReadOptions() const

Returns
Type Description
google::cloud::spanner::ReadOptions