mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
24 lines
589 B
C++
24 lines
589 B
C++
#pragma once
|
|
|
|
#include <DB/DataStreams/IBlockInputStream.h>
|
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/** Позволяет создать IBlockInputStream или IBlockOutputStream по названию формата.
|
|
* Замечание: формат и сжатие - независимые вещи.
|
|
*/
|
|
class FormatFactory
|
|
{
|
|
public:
|
|
BlockInputStreamPtr getInput(const String & name, ReadBuffer & buf,
|
|
Block & sample, size_t max_block_size) const;
|
|
|
|
BlockOutputStreamPtr getOutput(const String & name, WriteBuffer & buf,
|
|
Block & sample) const;
|
|
};
|
|
|
|
}
|