#pragma once #include namespace DB { class Block; class StorageMergeTree; class MergeTreeBlockOutputStream : public IBlockOutputStream { public: MergeTreeBlockOutputStream(StorageMergeTree & storage_) : storage(storage_) {} Block getHeader() const override; void write(const Block & block) override; private: StorageMergeTree & storage; }; }