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-21 UTC."],[[["This webpage details the `ReadPartition` class within the Google Cloud Spanner C++ client library, focusing on version 2.34.0 and offering links to various other versions."],["The `ReadPartition` class represents a segment of a parallel read operation in Cloud Spanner, which can be created via `Client::PartitionRead`."],["`ReadPartition` instances can be serialized and transferred to other processes, enabling parallel data reading with `Client::Read`, potentially leveraging Cloud Spanner Data Boost for enhanced performance."],["The class includes constructors for copying, moving, and creating an empty instance, as well as operators for assignment and functions to retrieve the table name, column names, and read options associated with the partition."],["The documentation provides links to numerous versions ranging from the latest release candidate (2.37.0-rc) back to version 2.11.0, offering comprehensive version coverage for the class."]]],[]]