Google Cloud Spanner C++ Client  1.32.0
A C++ Client Library for Google Cloud Spanner
Public Attributes | List of all members
google::cloud::spanner::v1::PartitionOptions Struct Reference

Options passed to Client::PartitionRead or Client::PartitionQuery. More...

#include <google/cloud/spanner/partition_options.h>

Public Attributes

absl::optional< std::int64_t > partition_size_bytes
 The desired data size for each partition generated. More...
 
absl::optional< std::int64_t > max_partitions
 The desired maximum number of partitions to return. More...
 

Detailed Description

Options passed to Client::PartitionRead or Client::PartitionQuery.

See documentation in spanner.proto.

Definition at line 36 of file partition_options.h.

Member Data Documentation

◆ max_partitions

absl::optional<std::int64_t> google::cloud::spanner::v1::PartitionOptions::max_partitions

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.

Definition at line 54 of file partition_options.h.

◆ partition_size_bytes

absl::optional<std::int64_t> google::cloud::spanner::v1::PartitionOptions::partition_size_bytes

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.

Definition at line 44 of file partition_options.h.