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.
Implements
IEquatableCommandPartitionNamespace
GoogleCloudGoogle.Cloud.SpannerDataAssembly
Google.Cloud.Spanner.Data.dll
Properties
PartitionId
public string PartitionId { get; }
The Id for the set of data to be included when the SpannerCommand executes.
Property Value | |
---|---|
Type | Description |
string |
Methods
FromBase64String(string)
public static CommandPartition FromBase64String(string base64String)
Creates a new CommandPartition based on the text returned by a previous call to ToBase64String().
Parameter | |
---|---|
Name | Description |
base64String | string The base64 representation of the command partition. Must not be null. |
Returns | |
---|---|
Type | Description |
CommandPartition | The CommandPartition representation of the partition. |
GetHashCode()
public override int GetHashCode()
Returns | |
---|---|
Type | Description |
int |
ToBase64String()
public string ToBase64String()
Serializes this command partition as base64 text.
Returns | |
---|---|
Type | Description |
string | The base64 representation of this partition. |
After partitioning a query, the partitions can be serialized using this method, then deserialized with FromBase64String(string) on multiple machines, allowing parallel processing.