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.
|
2020-09-03 13:29:18 +00:00
|
|
|
PartsRange select(
|
|
|
|
const PartsRanges & parts_ranges,
|
2017-04-01 07:20:54 +00:00
|
|
|
const size_t max_total_size_to_merge) override;
|
2016-10-30 08:15:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|