ClickHouse/dbms/Formats/NullFormat.cpp

21 lines
408 B
C++
Raw Normal View History

#include <DataStreams/NullBlockOutputStream.h>
#include <Formats/FormatFactory.h>
namespace DB
{
void registerOutputFormatNull(FormatFactory & factory)
{
factory.registerOutputFormat("Null", [](
WriteBuffer &,
const Block & sample,
FormatFactory::WriteCallback,
const FormatSettings &)
{
return std::make_shared<NullBlockOutputStream>(sample);
});
}
}