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

Options for NYT::IClient::CreateTableWriter. More...

#include <client_method_options.h>

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

Public Member Functions

TSelf & SingleHttpRequest (bool)
 Enable or disable retryful writing.
TSelf & BufferSize (size_t)
 Allows to change the size of locally buffered rows before flushing to yt.
TSelf & FormatHints (TFormatHints)
 Allows to fine tune format that is used for writing tables.
TSelf & InferSchema (bool)
 Try to infer schema of inexistent table from the type of written rows.
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< TTableWriterOptions >
TSelf & Config (TNode)
 Advanced options for reader/writer.
TSelf & CreateTransaction (bool)
 Whether to create internal client transaction for reading / writing table.

Detailed Description

Member Function Documentation

◆ AutoFinish()

TSelf & NYT::TTableWriterOptions::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.

◆ BufferSize()

TSelf & NYT::TTableWriterOptions::BufferSize ( size_t )

Allows to change the size of locally buffered rows before flushing to yt.

Used only with NYT::TTableWriterOptions::SingleHttpRequest

◆ FormatHints()

TSelf & NYT::TTableWriterOptions::FormatHints ( TFormatHints )

Allows to fine tune format that is used for writing tables.

Has no effect when used with raw-writer.

◆ InferSchema()

TSelf & NYT::TTableWriterOptions::InferSchema ( bool )

Try to infer schema of inexistent table from the type of written rows.

Note
Default values for this option may differ depending on the row type. For protobuf it's currently false by default.

◆ SingleHttpRequest()

TSelf & NYT::TTableWriterOptions::SingleHttpRequest ( bool )

Enable or disable retryful writing.

If set to true no retry is made but we also make less requests to master. If set to false writer can make up to TConfig::RetryCount attempts to send each block of data.

Note
Writers' methods might throw strange exceptions that might look like network error when SingleHttpRequest == true and YT node encounters an error (due to limitations of HTTP protocol YT node have no chance to report error before it reads the whole input so it just drops the connection).

◆ WriterOptions()

TSelf & NYT::TTableWriterOptions::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: