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"]],[["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 `CommandPartition` class represents a segment of data for a `SpannerCommand` to execute, facilitating parallel processing of large operations across multiple tasks or processes."],["The latest version available is 5.0.0-beta05, with a range of previous versions, including stable releases and beta versions, accessible in the documentation."],["The `PartitionId` property provides the unique identifier for the data set that will be included when the `SpannerCommand` is executed."],["`CommandPartition` objects can be serialized into a base64 string using `ToBase64String()` and reconstructed using `FromBase64String(String)`, enabling the distribution of partitioned queries across different machines."],["The `CommandPartition` class implements `IEquatable`, allowing instances to be checked for equality and also overrides `GetHashCode()` for compatibility with hash-based collections."]]],[]]