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."],[[["The webpage documents the `ReadPartition` class within the Google Cloud Spanner C++ library, specifically highlighting its role in parallel read operations."],["The `ReadPartition` class, represented by the reference version `2.15.1`, allows for the creation of slices of data, which can be serialized, transmitted across different processes, and then read in parallel."],["`ReadPartition` objects are created by `Client::PartitionRead`, and can then use `Client::Read` to read data in parallel, with an option to utilize Cloud Spanner Data Boost's independent compute resources, indicated by the `data_boost` setting."],["The page details the constructors and operators of the `ReadPartition` class, including copy and move operations, and highlights functions for retrieving the table name, column names, and read options."],["Multiple versions of the documentation for the `ReadPartition` are available on this page, with the latest version being `2.37.0-rc`, and going down to version `2.11.0`."]]],[]]