2018-04-19 10:33:16 +00:00
|
|
|
#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;
|
2018-04-19 14:20:18 +00:00
|
|
|
static ReplicatedMergeTreeMutationEntry parse(const String & str, String znode_name);
|
2018-04-19 10:33:16 +00:00
|
|
|
|
|
|
|
String znode_name;
|
|
|
|
|
|
|
|
time_t create_time = 0;
|
|
|
|
String source_replica;
|
|
|
|
|
2018-06-07 13:28:39 +00:00
|
|
|
std::map<String, Int64> block_numbers;
|
2018-04-19 10:33:16 +00:00
|
|
|
MutationCommands commands;
|
|
|
|
};
|
|
|
|
|
2018-06-07 11:00:43 +00:00
|
|
|
using ReplicatedMergeTreeMutationEntryPtr = std::shared_ptr<const ReplicatedMergeTreeMutationEntry>;
|
|
|
|
|
2018-04-19 10:33:16 +00:00
|
|
|
}
|