C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TIOOptions< TDerived > Struct Template Reference

Base class for many options related to IO. More...

#include <client_method_options.h>

Public Member Functions

TSelf & Config (TNode)
 Advanced options for reader/writer.
TSelf & CreateTransaction (bool)
 Whether to create internal client transaction for reading / writing table.

Detailed Description

template<class TDerived>
struct NYT::TIOOptions< TDerived >

Base class for many options related to IO.

NYT::TFileWriterOptions NYT::TFileReaderOptions NYT::TTableReaderOptions NYT::TTableWriterOptions

Member Function Documentation

◆ Config()

template<class TDerived>
TSelf & NYT::TIOOptions< TDerived >::Config ( TNode )

Advanced options for reader/writer.

Readers/writers have many options not of all of them are supported by library. If you need such unsupported option, you might use Config option until option is supported.

Example:

TTableWriterOptions().Config(TNode()("max_row_weight", 64 << 20)))
Note
We encourage you to ask yt@ to add native C++ support of required options and use Config only as temporary solution while native support is not ready.

◆ CreateTransaction()

template<class TDerived>
TSelf & NYT::TIOOptions< TDerived >::CreateTransaction ( bool )

Whether to create internal client transaction for reading / writing table.

This is advanced option.

If CreateTransaction is set to false reader/writer doesn't create internal transaction and doesn't lock table. This option is overridden (effectively false) for writers by NYT::TTableWriterOptions::SingleHttpRequest

WARNING: if CreateTransaction is false, read/write might become non-atomic. Change ONLY if you are sure what you are doing!


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