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-03-14 UTC."],[[["The latest version available for the `ReadPartition` class is 2.37.0-rc, with numerous previous versions also documented for reference."],["`ReadPartition` represents a single segment of a parallel read operation in Google Cloud Spanner, and it's created by using `Client::PartitionRead`."],["`ReadPartition` objects can be moved across different processes, allowing for the parallel reading of data using `Client::Read`."],["The `ReadPartition` class includes constructors and operators that support copy and move operations, plus a constructor that creates a `ReadPartition` instance with no specified table or columns to be read."],["The class also contains functions such as `TableName()`, `ColumnNames()` and `ReadOptions()` that allows you to receive more information on the `ReadPartition` class."]]],[]]