mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
23 lines
414 B
C++
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(); }
|
|
};
|
|
|
|
}
|