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

Options for writing file. More...

#include <client_method_options.h>

Inheritance diagram for NYT::TFileWriterOptions:
NYT::TIOOptions< TFileWriterOptions >

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.

Detailed Description

Options for writing file.

See also
NYT::IIOClient::CreateFileWriter

Member Function Documentation

◆ AutoFinish()

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.

◆ ComputeMD5()

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).

◆ WriterOptions()

TSelf & NYT::TFileWriterOptions::WriterOptions ( TWriterOptions )

Options to control how YT server side writes data.

See also
NYT::TWriterOptions

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