2016-10-30 08:15:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Storages/MergeTree/MergeSelector.h>
|
2016-10-30 08:15:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2019-01-22 19:56:53 +00:00
|
|
|
/// Select all parts within partition (having at least two parts) with minimum total size.
|
2016-10-30 08:15:55 +00:00
|
|
|
class AllMergeSelector : public IMergeSelector
|
|
|
|
{
|
|
|
|
public:
|
2017-04-01 07:20:54 +00:00
|
|
|
/// Parameter max_total_size_to_merge is ignored.
|
|
|
|
PartsInPartition select(
|
|
|
|
const Partitions & partitions,
|
|
|
|
const size_t max_total_size_to_merge) override;
|
2016-10-30 08:15:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|