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\u003eThe latest version available for the \u003ccode\u003eCommandPartition\u003c/code\u003e class is 5.0.0-beta05, with numerous previous versions listed down to 3.5.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCommandPartition\u003c/code\u003e represents a data partition that a \u003ccode\u003eSpannerCommand\u003c/code\u003e will execute upon, useful for parallelizing large operations.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCommandPartition\u003c/code\u003e class implements the \u003ccode\u003eIEquatable\u003c/code\u003e interface and provides a \u003ccode\u003ePartitionId\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eIt includes static method \u003ccode\u003eFromBase64String\u003c/code\u003e to deserialize a partition and an instance method \u003ccode\u003eToBase64String\u003c/code\u003e to serialize a partition for transport and parallel processing across multiple machines.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to retrieve the hashcode of an object.\u003c/p\u003e\n"]]],[],null,[]]