|
C++ YT Wrapper
C++ library for working with YT clusters
|
Options for NYT::IClient::GetTablePartitions. More...
#include <client_method_options.h>
Public Member Functions | |
| TSelf & | PartitionMode (ETablePartitionMode) |
| Table partitioning mode. | |
| TSelf & | DataWeightPerPartition (i64) |
| Approximate data weight of each output partition. | |
| TSelf & | MaxPartitionCount (int) |
| Maximum output partition count. | |
| TSelf & | AdjustDataWeightPerPartition (bool) |
| Allow the data weight per partition to exceed DataWeightPerPartition when MaxPartitionCount is set. | |
| TSelf & | EnableCookies (bool) |
| Enable partition cookies in response. | |
| TSelf & | FetchCookieNodeDescriptors (bool) |
| Enable partition node descriptors serialization in cookie. | |
Options for NYT::IClient::GetTablePartitions.
| TSelf & NYT::TGetTablePartitionsOptions::AdjustDataWeightPerPartition | ( | bool | ) |
Allow the data weight per partition to exceed DataWeightPerPartition when MaxPartitionCount is set.
|True| by default.
| TSelf & NYT::TGetTablePartitionsOptions::EnableCookies | ( | bool | ) |
Enable partition cookies in response.
Partition cookies allow to efficiently read partitions using NYT::IClientBase::CreateTablePartitionReader method.
| TSelf & NYT::TGetTablePartitionsOptions::FetchCookieNodeDescriptors | ( | bool | ) |
Enable partition node descriptors serialization in cookie.
Increases cookie size but likely reduces read latency in NYT::IClientBase::CreateTablePartitionReader method.
| TSelf & NYT::TGetTablePartitionsOptions::MaxPartitionCount | ( | int | ) |
Maximum output partition count.
Consider the situation when the MaxPartitionCount is given and the total data weight exceeds MaxPartitionCount * DataWeightPerPartition. If AdjustDataWeightPerPartition is |true| GetTablePartitions will yield partitions exceeding the DataWeightPerPartition. If AdjustDataWeightPerPartition is |false| the partitioning will be aborted as soon as the output partition count exceeds this limit.
| TSelf & NYT::TGetTablePartitionsOptions::PartitionMode | ( | ETablePartitionMode | ) |
Table partitioning mode.