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