ClickHouse/programs/copier/ClusterPartition.h

23 lines
394 B
C++
Raw Normal View History

2020-02-19 15:01:08 +00:00
#pragma once
2022-10-20 14:37:27 +00:00
#include <base/types.h>
#include <map>
2020-02-19 15:01:08 +00:00
namespace DB
{
2022-10-20 14:37:27 +00:00
/// Contains info about all shards that contain a partition
struct ClusterPartition
{
double elapsed_time_seconds = 0;
UInt64 bytes_copied = 0;
UInt64 rows_copied = 0;
UInt64 blocks_copied = 0;
UInt64 total_tries = 0;
};
using ClusterPartitions = std::map<String, ClusterPartition, std::greater<>>;
2020-02-19 15:01:08 +00:00
}