| 1 | #include <DataStreams/NullBlockOutputStream.h> |
|---|---|
| 2 | #include <Formats/FormatFactory.h> |
| 3 | |
| 4 | |
| 5 | namespace DB |
| 6 | { |
| 7 | |
| 8 | void registerOutputFormatNull(FormatFactory & factory) |
| 9 | { |
| 10 | factory.registerOutputFormat("Null", []( |
| 11 | WriteBuffer &, |
| 12 | const Block & sample, |
| 13 | FormatFactory::WriteCallback, |
| 14 | const FormatSettings &) |
| 15 | { |
| 16 | return std::make_shared<NullBlockOutputStream>(sample); |
| 17 | }); |
| 18 | } |
| 19 | |
| 20 | } |
| 21 |