mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
a502424c33
* Add write-callback on each row for RowOutputStream * Fix build of new rdkafka library * Poll messages if Kafka outgoing queue is full * Add test * Add test producer-consumer * Truncate delimiter from last row in message
22 lines
433 B
C++
22 lines
433 B
C++
#include <DataStreams/NullBlockOutputStream.h>
|
|
#include <Formats/FormatFactory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerOutputFormatNull(FormatFactory & factory)
|
|
{
|
|
factory.registerOutputFormat("Null", [](
|
|
WriteBuffer &,
|
|
const Block & sample,
|
|
const Context &,
|
|
FormatFactory::WriteCallback,
|
|
const FormatSettings &)
|
|
{
|
|
return std::make_shared<NullBlockOutputStream>(sample);
|
|
});
|
|
}
|
|
|
|
}
|