diff options
author | hiddenpath <hiddenpath@yandex-team.com> | 2024-12-22 16:37:15 +0300 |
---|---|---|
committer | hiddenpath <hiddenpath@yandex-team.com> | 2024-12-22 16:58:29 +0300 |
commit | f9e36e78609de5b801f829466f06ccc9a87dc00b (patch) | |
tree | f0d954fa30bf5352c4ce825c3293032d72a51189 /yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp | |
parent | 75a274b6f3b196529306be849688c15b6537d1d2 (diff) | |
download | ydb-f9e36e78609de5b801f829466f06ccc9a87dc00b.tar.gz |
YT-23616: Move ReadTable to THttpRawClient
commit_hash:c145049aef2f4ccaff537670be830d81ebc6f8d6
Diffstat (limited to 'yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp')
-rw-r--r-- | yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp b/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp index 8474bd0edc..4d6edede16 100644 --- a/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp +++ b/yt/cpp/mapreduce/raw_client/rpc_parameters_serialization.cpp @@ -4,6 +4,7 @@ #include <yt/cpp/mapreduce/interface/config.h> #include <yt/cpp/mapreduce/interface/client_method_options.h> +#include <yt/cpp/mapreduce/interface/fluent.h> #include <yt/cpp/mapreduce/interface/operation.h> #include <yt/cpp/mapreduce/interface/serialize.h> @@ -639,13 +640,29 @@ TNode SerializeParametersForDeleteRows( TNode SerializeParametersForTrimRows( const TString& pathPrefix, const TYPath& path, - const TTrimRowsOptions& /* options*/) + const TTrimRowsOptions& /*options*/) { TNode result; SetPathParam(&result, pathPrefix, path); return result; } +TNode SerializeParamsForReadTable( + const TTransactionId& transactionId, + const TString& pathPrefix, + const TRichYPath& path, + const TTableReaderOptions& options) +{ + TNode result; + SetTransactionIdParam(&result, transactionId); + result["control_attributes"] = BuildYsonNodeFluently() + .BeginMap() + .Item("enable_row_index").Value(options.ControlAttributes_.EnableRowIndex_) + .Item("enable_range_index").Value(options.ControlAttributes_.EnableRangeIndex_) + .EndMap(); + return result; +} + TNode SerializeParamsForParseYPath(const TRichYPath& path) { TNode result; |