mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-03 15:10:48 +00:00
fafecb3c25
* Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development): removed very old tests #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447 * Formats: better modularity (development) #2447
35 lines
786 B
C++
35 lines
786 B
C++
#include <DataStreams/NativeBlockInputStream.h>
|
|
#include <DataStreams/NativeBlockOutputStream.h>
|
|
#include <Formats/FormatFactory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
void registerInputFormatNative(FormatFactory & factory)
|
|
{
|
|
factory.registerInputFormat("Native", [](
|
|
ReadBuffer & buf,
|
|
const Block & sample,
|
|
const Context &,
|
|
size_t,
|
|
const FormatSettings &)
|
|
{
|
|
return std::make_shared<NativeBlockInputStream>(buf, sample, 0);
|
|
});
|
|
}
|
|
|
|
void registerOutputFormatNative(FormatFactory & factory)
|
|
{
|
|
factory.registerOutputFormat("Native", [](
|
|
WriteBuffer & buf,
|
|
const Block & sample,
|
|
const Context &,
|
|
const FormatSettings &)
|
|
{
|
|
return std::make_shared<NativeBlockOutputStream>(buf, 0, sample);
|
|
});
|
|
}
|
|
|
|
}
|