mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
28 lines
514 B
C++
28 lines
514 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockOutputStream.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Block;
|
|
class StorageMergeTree;
|
|
|
|
|
|
class MergeTreeBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
MergeTreeBlockOutputStream(StorageMergeTree & storage_, size_t max_parts_per_block_)
|
|
: storage(storage_), max_parts_per_block(max_parts_per_block_) {}
|
|
|
|
Block getHeader() const override;
|
|
void write(const Block & block) override;
|
|
|
|
private:
|
|
StorageMergeTree & storage;
|
|
size_t max_parts_per_block;
|
|
};
|
|
|
|
}
|