Google Cloud Spanner C++ Client 2.13.0
A C++ Client Library for Google Cloud Spanner
Loading...
Searching...
No Matches
Public Attributes | List of all members
google::cloud::spanner::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...
 
bool data_boost = false
 Use "data boost" in the returned partitions. More...
 

Detailed Description

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

See documentation in spanner.proto.

Member Data Documentation

◆ data_boost

bool google::cloud::spanner::PartitionOptions::data_boost = false

Use "data boost" in the returned partitions.

If true, the requests from the subsequent partitioned Client::Read() and Client::ExecuteQuery() calls will be executed using the independent compute resources of Cloud Spanner Data Boost.

◆ max_partitions

absl::optional<std::int64_t> google::cloud::spanner::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.

◆ partition_size_bytes

absl::optional<std::int64_t> google::cloud::spanner::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.