ClickHouse/dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.h
2017-06-25 01:36:43 +03:00

32 lines
588 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;
using Logger = Poco::Logger;
Logger * log;
};
}