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 details the \u003ccode\u003eReadPartition\u003c/code\u003e class in the Google Cloud Spanner C++ library, offering versioned documentation from 2.11.0 to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReadPartition\u003c/code\u003e represents a segment of a parallel Read operation, enabling data to be divided into smaller parts for parallel processing.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReadPartition\u003c/code\u003e instances are created using \u003ccode\u003eClient::PartitionRead\u003c/code\u003e and can be transmitted across different processes for parallel reads using \u003ccode\u003eClient::Read\u003c/code\u003e, potentially leveraging Data Boost for enhanced performance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReadPartition\u003c/code\u003e class offers constructors for copying, moving, and creating default instances, along with assignment operators for similar actions.\u003c/p\u003e\n"],["\u003cp\u003eIt provides functions like \u003ccode\u003eTableName()\u003c/code\u003e, \u003ccode\u003eColumnNames()\u003c/code\u003e, and \u003ccode\u003eReadOptions()\u003c/code\u003e to retrieve the table name, column names, and read options, respectively, associated with a partition.\u003c/p\u003e\n"]]],[],null,[]]