mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-09 18:10:48 +00:00
33 lines
587 B
C++
33 lines
587 B
C++
|
#pragma once
|
||
|
|
||
|
#include <Common/Exception.h>
|
||
|
#include <Core/Types.h>
|
||
|
#include <IO/WriteHelpers.h>
|
||
|
#include <Storages/MutationCommands.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
class ReadBuffer;
|
||
|
class WriteBuffer;
|
||
|
|
||
|
struct ReplicatedMergeTreeMutationEntry
|
||
|
{
|
||
|
void writeText(WriteBuffer & out) const;
|
||
|
void readText(ReadBuffer & in);
|
||
|
|
||
|
String toString() const;
|
||
|
static ReplicatedMergeTreeMutationEntry parse(const String & str);
|
||
|
|
||
|
String znode_name;
|
||
|
|
||
|
time_t create_time = 0;
|
||
|
String source_replica;
|
||
|
|
||
|
std::unordered_map<String, Int64> block_numbers;
|
||
|
MutationCommands commands;
|
||
|
};
|
||
|
|
||
|
}
|