ClickHouse/dbms/Processors/ISink.h
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

30 lines
416 B
C++

#pragma once
#include <Processors/IProcessor.h>
namespace DB
{
class ISink : public IProcessor
{
protected:
InputPort & input;
Chunk current_chunk;
bool has_input = false;
virtual void consume(Chunk block) = 0;
virtual void onFinish() {}
public:
explicit ISink(Block header);
Status prepare() override;
void work() override;
InputPort & getPort() { return input; }
};
}