mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
24 lines
601 B
C++
24 lines
601 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,
|
|
const Block & sample, size_t max_block_size) const;
|
|
|
|
BlockOutputStreamPtr getOutput(const String & name, WriteBuffer & buf,
|
|
const Block & sample) const;
|
|
};
|
|
|
|
}
|