public sealed class CommandPartition : IEquatable<CommandPartition>
Reference documentation and code samples for the Google.Cloud.Spanner.Data class CommandPartition.
Represents a partition of data upon which a SpannerCommand will execute.
Partitions are useful for parallelizing large operations across several tasks or processes.
After partitioning a query, the partitions can be serialized using this method, then deserialized
with FromBase64String(String) on multiple machines, allowing parallel processing.
[[["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-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eCommandPartition\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Spanner.Data\u003c/code\u003e namespace, specifically version 4.2.0 of the library, with links to prior versions and a latest beta version also provided.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommandPartition\u003c/code\u003e class represents a segment of data for \u003ccode\u003eSpannerCommand\u003c/code\u003e execution, enabling the parallelization of extensive operations across various tasks or processes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionId\u003c/code\u003e property of a \u003ccode\u003eCommandPartition\u003c/code\u003e object is a string that indicates the specific dataset that will be handled by a \u003ccode\u003eSpannerCommand\u003c/code\u003e when it is executed.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods \u003ccode\u003eFromBase64String()\u003c/code\u003e and \u003ccode\u003eToBase64String()\u003c/code\u003e, allowing for serialization and deserialization of partitions, which facilitates distributing and executing partitioned operations across multiple systems.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommandPartition\u003c/code\u003e class inherits from \u003ccode\u003eObject\u003c/code\u003e and implements \u003ccode\u003eIEquatable\u003c/code\u003e, and includes the overridden \u003ccode\u003eGetHashCode()\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,[]]