aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-01-25 22:40:07 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-01-26 20:49:21 +0300
commitd21538b4c09b407e4317b2fed2cded1950df125a (patch)
tree6359cc0a50bd2657a12bf6c4285cb963dc33ed25
parent22817e4eef3e09482237a2dfdaed9319241a11bb (diff)
downloadydb-d21538b4c09b407e4317b2fed2cded1950df125a.tar.gz
Intermediate changes
-rw-r--r--yt/cpp/mapreduce/interface/operation.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/operation.h b/yt/cpp/mapreduce/interface/operation.h
index 31252c2737..69c873090d 100644
--- a/yt/cpp/mapreduce/interface/operation.h
+++ b/yt/cpp/mapreduce/interface/operation.h
@@ -1990,6 +1990,19 @@ public:
virtual void Load(IInputStream& stream) override { Load(&stream); } \
Y_PASS_VA_ARGS(Y_SAVELOAD_DEFINE(__VA_ARGS__))
+///
+/// @brief Same as the macro above, but also calls Base class's SaveLoad methods.
+#define Y_SAVELOAD_JOB_DERIVED(Base, ...) \
+ virtual void Save(IOutputStream& stream) const override { \
+ Base::Save(stream); \
+ Save(&stream); \
+ } \
+ virtual void Load(IInputStream& stream) override { \
+ Base::Load(stream); \
+ Load(&stream); \
+ } \
+ Y_PASS_VA_ARGS(Y_SAVELOAD_DEFINE(__VA_ARGS__))
+
////////////////////////////////////////////////////////////////////////////////
///