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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This webpage provides documentation for the `ReadPartition` class in the Google Cloud Spanner C++ client library, with version information ranging from 2.11.0 to the latest release candidate 2.37.0-rc."],["The `ReadPartition` class represents a single slice of a parallel read operation in Spanner, and it is created using `Client::PartitionRead`."],["`ReadPartition` objects can be serialized, moved to different processes, and utilized for parallel data reading via `Client::Read`, potentially using Cloud Spanner Data Boost if `data_boost` is enabled."],["The `ReadPartition` class has constructors for copy and move operations, as well as default constructor."],["The `ReadPartition` class includes functions such as `TableName()`, `ColumnNames()`, and `ReadOptions()` to retrieve associated details about the partition."]]],[]]