diff options
author | Gleb Vishnevsky <vishnevskiygl@yandex-team.ru> | 2023-09-06 18:08:56 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-09-06 18:30:15 +0300 |
commit | af9b317ef9398dec041523c972153303378d5923 (patch) | |
tree | 454eb91906c1dee17b12c6137422442802f2f33a /yt/cpp | |
parent | f37a025ab3c1e0a083536193434e0442181d854a (diff) | |
download | ydb-af9b317ef9398dec041523c972153303378d5923.tar.gz |
[Sync from ytsaurus/ytsaurus] Added DSV format to client
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
---
Pull Request resolved: #93
Diffstat (limited to 'yt/cpp')
-rw-r--r-- | yt/cpp/mapreduce/interface/format.cpp | 5 | ||||
-rw-r--r-- | yt/cpp/mapreduce/interface/format.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/format.cpp b/yt/cpp/mapreduce/interface/format.cpp index f8318310a4..a663e7dfa8 100644 --- a/yt/cpp/mapreduce/interface/format.cpp +++ b/yt/cpp/mapreduce/interface/format.cpp @@ -59,6 +59,11 @@ TFormat TFormat::Json() return TFormat(TNode("json")); } +TFormat TFormat::Dsv() +{ + return TFormat(TNode("dsv")); +} + bool TFormat::IsTextYson() const { if (!Config.IsString() || Config.AsString() != "yson") { diff --git a/yt/cpp/mapreduce/interface/format.h b/yt/cpp/mapreduce/interface/format.h index e297576464..856d66bb97 100644 --- a/yt/cpp/mapreduce/interface/format.h +++ b/yt/cpp/mapreduce/interface/format.h @@ -73,6 +73,11 @@ public: /// @see [the doc](https://yt.yandex-team.ru/docs/description/storage/formats.html#JSON) static TFormat Json(); + /// @brief Create DSV (TSKV) format. + /// + /// @see [the doc](https://yt.yandex-team.ru/docs/description/storage/formats.html#DSV) + static TFormat Dsv(); + /// @brief Create protobuf format for the message specified in template parameter. /// /// `T` must be inherited from `Message`. |