ClickHouse/dbms/Processors/NullSink.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

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(); }
};
}