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/io/stream_raw_reader.cpp | |
| 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/io/stream_raw_reader.cpp')
| -rw-r--r-- | yt/cpp/mapreduce/io/stream_raw_reader.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt/cpp/mapreduce/io/stream_raw_reader.cpp b/yt/cpp/mapreduce/io/stream_raw_reader.cpp index ec19b67d0b0..f69eb9f034f 100644 --- a/yt/cpp/mapreduce/io/stream_raw_reader.cpp +++ b/yt/cpp/mapreduce/io/stream_raw_reader.cpp @@ -5,6 +5,10 @@ #include "skiff_table_reader.h" #include "yamr_table_reader.h" +#include <yt/cpp/mapreduce/common/abortable_stream.h> + +#include <yt/yt/core/concurrency/async_stream_helpers.h> + #include <util/system/env.h> #include <util/string/type.h> @@ -33,6 +37,12 @@ namespace NDetail { //////////////////////////////////////////////////////////////////////////////// +TInputStreamProxy::TInputStreamProxy(IInputStream* stream) + : Stream_(CreateAbortableInputStreamAdapter(NConcurrency::CreateAsyncAdapter(stream))) +{ } + +//////////////////////////////////////////////////////////////////////////////// + ::TIntrusivePtr<IProtoReaderImpl> CreateProtoReader( IInputStream* stream, const TTableReaderOptions& /* options */, |
