mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
326e382387
* Fix some includes and missing definitions * fix
34 lines
638 B
C++
34 lines
638 B
C++
#pragma once
|
|
|
|
#include <DB/DataStreams/IBlockOutputStream.h>
|
|
#include <DB/Core/Types.h>
|
|
|
|
namespace Poco { class Logger; }
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class StorageReplicatedMergeTree;
|
|
|
|
|
|
class ReplicatedMergeTreeBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
ReplicatedMergeTreeBlockOutputStream(StorageReplicatedMergeTree & storage_, const String & insert_id_,
|
|
size_t quorum_, size_t quorum_timeout_ms_);
|
|
|
|
void write(const Block & block) override;
|
|
|
|
private:
|
|
StorageReplicatedMergeTree & storage;
|
|
String insert_id;
|
|
size_t quorum;
|
|
size_t quorum_timeout_ms;
|
|
size_t block_index = 0;
|
|
|
|
using Logger = Poco::Logger;
|
|
Logger * log;
|
|
};
|
|
|
|
}
|