summaryrefslogtreecommitdiffstats
path: root/yt/cpp/mapreduce/client/client_writer.cpp
diff options
context:
space:
mode:
authormax42 <[email protected]>2023-06-30 11:13:34 +0300
committermax42 <[email protected]>2023-06-30 11:13:34 +0300
commit3e1899838408bbad47622007aa382bc8a2b01f87 (patch)
tree0f21c1e6add187ddb6c3ccc048a7d640ce03fb87 /yt/cpp/mapreduce/client/client_writer.cpp
parent5463eb3f5e72a86f858a3d27c886470a724ede34 (diff)
Revert "YT-19324: move YT provider to ydb/library/yql"
This reverts commit ca272f12fdd0e8d5c3e957fc87939148f1caaf72, reversing changes made to 49f8acfc8b0b5c0071b804423bcf53fda26c7c12.
Diffstat (limited to 'yt/cpp/mapreduce/client/client_writer.cpp')
-rw-r--r--yt/cpp/mapreduce/client/client_writer.cpp69
1 files changed, 0 insertions, 69 deletions
diff --git a/yt/cpp/mapreduce/client/client_writer.cpp b/yt/cpp/mapreduce/client/client_writer.cpp
deleted file mode 100644
index 357abd32eb1..00000000000
--- a/yt/cpp/mapreduce/client/client_writer.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-#include "client_writer.h"
-
-#include "retryful_writer.h"
-#include "retryless_writer.h"
-
-#include <yt/cpp/mapreduce/interface/io.h>
-#include <yt/cpp/mapreduce/common/fwd.h>
-#include <yt/cpp/mapreduce/common/helpers.h>
-
-namespace NYT {
-
-////////////////////////////////////////////////////////////////////////////////
-
-TClientWriter::TClientWriter(
- const TRichYPath& path,
- IClientRetryPolicyPtr clientRetryPolicy,
- ITransactionPingerPtr transactionPinger,
- const TClientContext& context,
- const TTransactionId& transactionId,
- const TMaybe<TFormat>& format,
- const TTableWriterOptions& options)
- : BUFFER_SIZE(options.BufferSize_)
-{
- if (options.SingleHttpRequest_) {
- RawWriter_.Reset(new TRetrylessWriter(
- context,
- transactionId,
- GetWriteTableCommand(context.Config->ApiVersion),
- format,
- path,
- BUFFER_SIZE,
- options));
- } else {
- RawWriter_.Reset(new TRetryfulWriter(
- std::move(clientRetryPolicy),
- std::move(transactionPinger),
- context,
- transactionId,
- GetWriteTableCommand(context.Config->ApiVersion),
- format,
- path,
- options));
- }
-}
-
-size_t TClientWriter::GetStreamCount() const
-{
- return 1;
-}
-
-IOutputStream* TClientWriter::GetStream(size_t tableIndex) const
-{
- Y_UNUSED(tableIndex);
- return RawWriter_.Get();
-}
-
-void TClientWriter::OnRowFinished(size_t)
-{
- RawWriter_->NotifyRowEnd();
-}
-
-void TClientWriter::Abort()
-{
- RawWriter_->Abort();
-}
-
-////////////////////////////////////////////////////////////////////////////////
-
-} // namespace NYT