Class QueryPartition (2.27.0)

The QueryPartition class is a regular type that represents a single slice of a parallel SQL read.

Instances of QueryPartition are created by Client::PartitionQuery. Once created, QueryPartition objects can be serialized, transmitted to separate processes, and used to read data in parallel using Client::ExecuteQuery. If data_boost is set, those requests will be executed using the independent compute resources of Cloud Spanner Data Boost.

Constructors

QueryPartition(QueryPartition const &)

Copy and move

Parameter
Name Description
QueryPartition const &

QueryPartition(QueryPartition &&)

Copy and move

Parameter
Name Description
QueryPartition &&

QueryPartition()

Constructs an instance of QueryPartition that is not associated with any SqlStatement.

Operators

operator=(QueryPartition const &)

Copy and move

Parameter
Name Description
QueryPartition const &
Returns
Type Description
QueryPartition &

operator=(QueryPartition &&)

Copy and move

Parameter
Name Description
QueryPartition &&
Returns
Type Description
QueryPartition &

Functions

sql_statement() const

Accessor for the SqlStatement associated with this QueryPartition.

Returns
Type Description
SqlStatement const &