mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 14:11:58 +00:00
27 lines
347 B
C++
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; }
|
|
};
|
|
|
|
}
|