public sealed class PartitionOptions : IMessage<PartitionOptions>, IEquatable<PartitionOptions>, IDeepCloneable<PartitionOptions>, IBufferMessage, IMessage
Options for a PartitionQueryRequest and
PartitionReadRequest.
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.
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.
[[["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 page provides documentation for \u003ccode\u003ePartitionOptions\u003c/code\u003e in the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace, covering versions from 3.5.0 up to the latest beta, 5.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePartitionOptions\u003c/code\u003e is a class used for configuring \u003ccode\u003ePartitionQueryRequest\u003c/code\u003e and \u003ccode\u003ePartitionReadRequest\u003c/code\u003e, implementing several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionOptions\u003c/code\u003e class has two properties, \u003ccode\u003eMaxPartitions\u003c/code\u003e and \u003ccode\u003ePartitionSizeBytes\u003c/code\u003e, which are hints for the desired maximum number and size of partitions, respectively, with default values of 10,000 and 1 GiB.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePartitionOptions\u003c/code\u003e class includes two constructors: a default constructor and one that takes another \u003ccode\u003ePartitionOptions\u003c/code\u003e instance as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThis page details inherited members from the base \u003ccode\u003eObject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]