mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
33 lines
616 B
C++
33 lines
616 B
C++
#pragma once
|
|
|
|
#include <DataStreams/IBlockOutputStream.h>
|
|
#include <Core/Types.h>
|
|
|
|
namespace Poco { class Logger; }
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class StorageReplicatedMergeTree;
|
|
|
|
|
|
class ReplicatedMergeTreeBlockOutputStream : public IBlockOutputStream
|
|
{
|
|
public:
|
|
ReplicatedMergeTreeBlockOutputStream(StorageReplicatedMergeTree & storage_,
|
|
size_t quorum_, size_t quorum_timeout_ms_);
|
|
|
|
void write(const Block & block) override;
|
|
|
|
private:
|
|
StorageReplicatedMergeTree & storage;
|
|
size_t quorum;
|
|
size_t quorum_timeout_ms;
|
|
size_t block_index = 0;
|
|
|
|
using Logger = Poco::Logger;
|
|
Logger * log;
|
|
};
|
|
|
|
}
|