ClickHouse/dbms/src/Processors/ISink.h
2018-05-23 23:19:33 +03:00

27 lines
347 B
C++

#pragma once
#include <Processors/IProcessor.h>
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; }
};
}