ClickHouse/dbms/programs/copier/Aliases.h

30 lines
899 B
C++
Raw Normal View History

2020-02-19 15:01:08 +00:00
#pragma once
#include <Interpreters/Cluster.h>
2020-02-20 09:01:06 +00:00
2020-02-19 15:01:08 +00:00
namespace DB
{
using ConfigurationPtr = Poco::AutoPtr<Poco::Util::AbstractConfiguration>;
using DatabaseAndTableName = std::pair<String, String>;
2020-02-21 16:00:50 +00:00
using ListOfDatabasesAndTableNames = std::vector<DatabaseAndTableName>;
2020-02-19 15:01:08 +00:00
/// Hierarchical description of the tasks
2020-02-20 09:01:06 +00:00
struct ShardPartitionPiece;
2020-02-19 15:01:08 +00:00
struct ShardPartition;
struct TaskShard;
struct TaskTable;
struct TaskCluster;
struct ClusterPartition;
2020-02-20 09:01:06 +00:00
using PartitionPieces = std::vector<ShardPartitionPiece>;
2020-02-19 15:01:08 +00:00
using TasksPartition = std::map<String, ShardPartition, std::greater<>>;
using ShardInfo = Cluster::ShardInfo;
using TaskShardPtr = std::shared_ptr<TaskShard>;
using TasksShard = std::vector<TaskShardPtr>;
using TasksTable = std::list<TaskTable>;
using ClusterPartitions = std::map<String, ClusterPartition, std::greater<>>;
}