diff options
author | nadya73 <nadya73@yandex-team.com> | 2023-09-14 21:38:24 +0300 |
---|---|---|
committer | nadya73 <nadya73@yandex-team.com> | 2023-09-14 21:58:35 +0300 |
commit | 66ab4dcacadc42a49d252c99d3f7666f13a5abe1 (patch) | |
tree | 94f38106381f9b5d36da767491c344972a28c547 /yt/cpp/mapreduce/interface/io.h | |
parent | 59dbf512fa4bb44d4873c2dd926eb95a57895472 (diff) | |
download | ydb-66ab4dcacadc42a49d252c99d3f7666f13a5abe1.tar.gz |
[yt/cpp/mapreduce] YT-19268: Lock memory for parallel writer
Diffstat (limited to 'yt/cpp/mapreduce/interface/io.h')
-rw-r--r-- | yt/cpp/mapreduce/interface/io.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/interface/io.h b/yt/cpp/mapreduce/interface/io.h index e2b20a1802..dbd3a2cb70 100644 --- a/yt/cpp/mapreduce/interface/io.h +++ b/yt/cpp/mapreduce/interface/io.h @@ -168,6 +168,11 @@ public: /// By default it does nothing, but implementations are welcome to override this method. virtual void Abort() { } + + virtual size_t GetBufferMemoryUsage() const + { + return 0; + } }; /// @brief Interface to deal with multiple raw output streams. @@ -191,6 +196,11 @@ public: /// By default it does nothing, but implementations are welcome to override this method. virtual void Abort() { } + + virtual size_t GetBufferMemoryUsage() const + { + return 0; + } }; //////////////////////////////////////////////////////////////////////////////// @@ -378,6 +388,8 @@ public: /// Stop writing data as soon as possible (without flushing data, e.g. before aborting parent transaction). void Finish(); + + size_t GetBufferMemoryUsage() const; }; //////////////////////////////////////////////////////////////////////////////// |