blob: 7f72c8005af756abaa4083c0223a0186cb21e167 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <yt/cpp/mapreduce/interface/io.h>
namespace NYT {
class IProxyOutput;
////////////////////////////////////////////////////////////////////////////////
class TYaMRTableWriter
: public IYaMRWriterImpl
{
public:
explicit TYaMRTableWriter(THolder<IProxyOutput> output);
~TYaMRTableWriter() override;
void AddRow(const TYaMRRow& row, size_t tableIndex) override;
void AddRow(TYaMRRow&& row, size_t tableIndex) override;
size_t GetBufferMemoryUsage() const override;
size_t GetTableCount() const override;
void FinishTable(size_t) override;
void Abort() override;
private:
THolder<IProxyOutput> Output_;
};
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|