|
C++ YT Wrapper
C++ library for working with YT clusters
|
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. | |
Base class for many options related to IO.
NYT::TFileWriterOptions NYT::TFileReaderOptions NYT::TTableReaderOptions NYT::TTableWriterOptions
| 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)))
| 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!