|
C++ YT Wrapper
C++ library for working with YT clusters
|
Options for writing file. More...
#include <client_method_options.h>
Public Member Functions | |
| TSelf & | ComputeMD5 (bool) |
| Whether to compute MD5 sum of written file. | |
| TSelf & | AutoFinish (bool) |
| Wheter to call Finish automatically in writer destructor. | |
| TSelf & | WriterOptions (TWriterOptions) |
| Options to control how YT server side writes data. | |
| Public Member Functions inherited from NYT::TIOOptions< TFileWriterOptions > | |
| TSelf & | Config (TNode) |
| Advanced options for reader/writer. | |
| TSelf & | CreateTransaction (bool) |
| Whether to create internal client transaction for reading / writing table. | |
Options for writing file.
| TSelf & NYT::TFileWriterOptions::AutoFinish | ( | bool | ) |
Wheter to call Finish automatically in writer destructor.
If set to true (default) Finish() is called automatically in the destructor of writer. It is convenient for simple usecases but might be error-prone if writing exception safe code (In case of exceptions it's common to abort writer and not commit partial data).
If set to false Finish() has to be called explicitly.
| TSelf & NYT::TFileWriterOptions::ComputeMD5 | ( | bool | ) |
Whether to compute MD5 sum of written file.
If ComputeMD5 is set to true and we are appending to an existing file the md5 attribute must be set (i.e. it was previously written only with ComputeMD5 == true).
| TSelf & NYT::TFileWriterOptions::WriterOptions | ( | TWriterOptions | ) |
Options to control how YT server side writes data.