C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TGetTablePartitionsOptions Struct Reference

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.

Detailed Description

Member Function Documentation

◆ AdjustDataWeightPerPartition()

TSelf & NYT::TGetTablePartitionsOptions::AdjustDataWeightPerPartition ( bool )

Allow the data weight per partition to exceed DataWeightPerPartition when MaxPartitionCount is set.

|True| by default.

◆ EnableCookies()

TSelf & NYT::TGetTablePartitionsOptions::EnableCookies ( bool )

Enable partition cookies in response.

Partition cookies allow to efficiently read partitions using NYT::IClientBase::CreateTablePartitionReader method.

◆ FetchCookieNodeDescriptors()

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.

◆ MaxPartitionCount()

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.

◆ PartitionMode()

TSelf & NYT::TGetTablePartitionsOptions::PartitionMode ( ETablePartitionMode )

Table partitioning mode.

NYT::ETablePartitionMode


The documentation for this struct was generated from the following file: