1234567891011121314151617181920212223242526272829303132 |
- #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
|