ClickHouse/dbms/src/Processors/NullSink.h
2019-07-08 15:48:16 +03:00

23 lines
414 B
C++

#pragma once
#include <Processors/IProcessor.h>
namespace DB
{
class NullSink : public IProcessor
{
public:
explicit NullSink(Block header) : IProcessor({std::move(header)}, {}) {}
String getName() const override { return "NullSink"; }
Status prepare() override
{
inputs.front().close();
return Status::Finished;
}
InputPort & getPort() { return inputs.front(); }
};
}