#pragma once #include namespace DB { class ISink : public IProcessor { protected: InputPort & input; Block current_block; virtual void consume(Block block) = 0; public: ISink(Block header); Status prepare() override; void work() override; InputPort & getPort() { return input; } }; }