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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-22 UTC."],[[["\u003cp\u003eThe webpage documents the \u003ccode\u003eReadPartition\u003c/code\u003e class within the Google Cloud Spanner C++ library, specifically highlighting its role in parallel read operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReadPartition\u003c/code\u003e class, represented by the reference version \u003ccode\u003e2.15.1\u003c/code\u003e, allows for the creation of slices of data, which can be serialized, transmitted across different processes, and then read in parallel.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReadPartition\u003c/code\u003e objects are created by \u003ccode\u003eClient::PartitionRead\u003c/code\u003e, and can then use \u003ccode\u003eClient::Read\u003c/code\u003e to read data in parallel, with an option to utilize Cloud Spanner Data Boost's independent compute resources, indicated by the \u003ccode\u003edata_boost\u003c/code\u003e setting.\u003c/p\u003e\n"],["\u003cp\u003eThe page details the constructors and operators of the \u003ccode\u003eReadPartition\u003c/code\u003e class, including copy and move operations, and highlights functions for retrieving the table name, column names, and read options.\u003c/p\u003e\n"],["\u003cp\u003eMultiple versions of the documentation for the \u003ccode\u003eReadPartition\u003c/code\u003e are available on this page, with the latest version being \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and going down to version \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]