Class CommandPartition (3.7.0)

public sealed class CommandPartition : IEquatable<CommandPartition>

Represents a partition of data upon which a SpannerCommand will execute. Partitions are useful for parallelizing large operations across several tasks or processes.

Inheritance

Object > CommandPartition

Namespace

Google.Cloud.Spanner.Data

Assembly

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
TypeDescription
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
NameDescription
base64StringString

The base64 representation of the command partition.

Returns
TypeDescription
CommandPartition

The CommandPartition representation of the partition.

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32
Overrides

ToBase64String()

public string ToBase64String()

Serializes this command partition as base64 text.

Returns
TypeDescription
String

The base64 representation of this partition.

Remarks

After partitioning a query, the partitions can be serialized using this method, then deserialized with FromBase64String(String) on multiple machines, allowing parallel processing.