diff options
| author | robot-erm <[email protected]> | 2024-01-25 11:11:38 +0300 |
|---|---|---|
| committer | robot-erm <[email protected]> | 2024-01-25 11:32:49 +0300 |
| commit | cbf9c434c0d9cb893e267be898fc85e81127cf62 (patch) | |
| tree | 9d8594b3601da653b67298666625d0a6c2be78ad /yt/cpp/mapreduce/interface/client_method_options.h | |
| parent | 42db3295ba5bc7fffa4b289c9010d802e2d7911c (diff) | |
erm: Add new version for `@yatool/prebuilder`: `0.5.1` and set `0.5.1` as default
Executed command: `./erm --verbose --profile update @yatool/prebuilder`
Diffstat (limited to 'yt/cpp/mapreduce/interface/client_method_options.h')
| -rw-r--r-- | yt/cpp/mapreduce/interface/client_method_options.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/client_method_options.h b/yt/cpp/mapreduce/interface/client_method_options.h index b5f0f1e34e2..24607de424b 100644 --- a/yt/cpp/mapreduce/interface/client_method_options.h +++ b/yt/cpp/mapreduce/interface/client_method_options.h @@ -538,6 +538,16 @@ struct TFileWriterOptions FLUENT_FIELD_OPTION(bool, ComputeMD5); /// + /// @brief 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. + FLUENT_FIELD_DEFAULT(bool, AutoFinish, true); + + /// /// @brief Options to control how YT server side writes data. /// /// @see NYT::TWriterOptions @@ -689,6 +699,16 @@ struct TTableWriterOptions FLUENT_FIELD_OPTION(bool, InferSchema); /// + /// @brief 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. + FLUENT_FIELD_DEFAULT(bool, AutoFinish, true); + + /// /// @brief Options to control how YT server side writes data. /// /// @see NYT::TWriterOptions |
