blob: 4bd2249ac162ac488898de8feefe6a74c3c66b50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include <Processors/Formats/Impl/NullFormat.h>
#include <Formats/FormatFactory.h>
#include <IO/WriteBuffer.h>
namespace DB
{
WriteBufferFromPointer NullOutputFormat::empty_buffer(nullptr, 0);
NullOutputFormat::NullOutputFormat(const Block & header) : IOutputFormat(header, empty_buffer) {}
void registerOutputFormatNull(FormatFactory & factory)
{
factory.registerOutputFormat("Null", [](
WriteBuffer &,
const Block & sample,
const FormatSettings &)
{
return std::make_shared<NullOutputFormat>(sample);
});
}
}
|