1 | #pragma once |
---|---|
2 | |
3 | #include <Storages/MergeTree/MergeSelector.h> |
4 | |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | /// Select all parts within partition (having at least two parts) with minimum total size. |
10 | class AllMergeSelector : public IMergeSelector |
11 | { |
12 | public: |
13 | /// Parameter max_total_size_to_merge is ignored. |
14 | PartsInPartition select( |
15 | const Partitions & partitions, |
16 | const size_t max_total_size_to_merge) override; |
17 | }; |
18 | |
19 | } |
20 |