diff options
| author | maybenotilya <[email protected]> | 2026-04-17 11:57:44 +0300 |
|---|---|---|
| committer | maybenotilya <[email protected]> | 2026-04-17 12:34:55 +0300 |
| commit | a6423bf330c10089d7a0e2aaa8d971d0dcbb3fcf (patch) | |
| tree | 087131eb0146a82cd9c72d1b0a290d8d081c021e /yt/cpp/mapreduce/client/client_reader.h | |
| parent | 7bcfb91453e538211ed44e97c57d1104f543f920 (diff) | |
YT-26179: Add Abort for readers
* Changelog entry
Type: feature
Component: cpp-sdk
Add Abort for table readers
commit_hash:be5026883c90d18333f20468946f1e5a5b71839b
Diffstat (limited to 'yt/cpp/mapreduce/client/client_reader.h')
| -rw-r--r-- | yt/cpp/mapreduce/client/client_reader.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/client/client_reader.h b/yt/cpp/mapreduce/client/client_reader.h index 9f3160c9c7d..19a9f1ad173 100644 --- a/yt/cpp/mapreduce/client/client_reader.h +++ b/yt/cpp/mapreduce/client/client_reader.h @@ -2,6 +2,8 @@ #include <yt/cpp/mapreduce/common/fwd.h> +#include <yt/cpp/mapreduce/interface/abortable_stream.h> + #include <yt/cpp/mapreduce/http/context.h> #include <yt/cpp/mapreduce/http/requests.h> #include <yt/cpp/mapreduce/http/http.h> @@ -37,6 +39,9 @@ public: bool HasRangeIndices() const override { return true; } + void Abort() override; + bool IsAborted() const override; + protected: size_t DoRead(void* buf, size_t len) override; @@ -53,7 +58,7 @@ private: std::unique_ptr<TPingableTransaction> ReadTransaction_; - std::unique_ptr<IInputStream> Input_; + std::unique_ptr<IAbortableInputStream> Input_; IRequestRetryPolicyPtr CurrentRequestRetryPolicy_; |
