1#pragma once
2
3#include <Common/Exception.h>
4#include <Core/Types.h>
5#include <IO/WriteHelpers.h>
6#include <Storages/MutationCommands.h>
7#include <map>
8
9
10namespace DB
11{
12
13class ReadBuffer;
14class WriteBuffer;
15
16struct ReplicatedMergeTreeMutationEntry
17{
18 void writeText(WriteBuffer & out) const;
19 void readText(ReadBuffer & in);
20
21 String toString() const;
22 static ReplicatedMergeTreeMutationEntry parse(const String & str, String znode_name);
23
24 String znode_name;
25
26 time_t create_time = 0;
27 String source_replica;
28
29 std::map<String, Int64> block_numbers;
30 MutationCommands commands;
31};
32
33using ReplicatedMergeTreeMutationEntryPtr = std::shared_ptr<const ReplicatedMergeTreeMutationEntry>;
34
35}
36