public sealed class PartitionOptions : IMessage<PartitionOptions>, IEquatable<PartitionOptions>, IDeepCloneable<PartitionOptions>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Spanner v1 API class PartitionOptions.
Options for a PartitionQueryRequest and PartitionReadRequest.
Implements
IMessagePartitionOptions, IEquatablePartitionOptions, IDeepCloneablePartitionOptions, IBufferMessage, IMessageNamespace
Google.Cloud.Spanner.V1Assembly
Google.Cloud.Spanner.V1.dll
Constructors
PartitionOptions()
public PartitionOptions()
PartitionOptions(PartitionOptions)
public PartitionOptions(PartitionOptions other)
Parameter | |
---|---|
Name | Description |
other |
PartitionOptions |
Properties
MaxPartitions
public long MaxPartitions { get; set; }
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests.
The desired maximum number of partitions to return. For example, this may be set to the number of workers available. The default for this option is currently 10,000. The maximum value is currently 200,000. This is only a hint. The actual number of partitions returned may be smaller or larger than this maximum count request.
Property Value | |
---|---|
Type | Description |
long |
PartitionSizeBytes
public long PartitionSizeBytes { get; set; }
Note: This hint is currently ignored by PartitionQuery and PartitionRead requests.
The desired data size for each partition generated. The default for this option is currently 1 GiB. This is only a hint. The actual size of each partition may be smaller or larger than this size request.
Property Value | |
---|---|
Type | Description |
long |