aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Storages/MergeTree/AllMergeSelector.h
blob: 6cd3bb6f3fab392ce6aa7633359405c76f65a994 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <Storages/MergeTree/MergeSelector.h>


namespace DB
{

/// Select all parts within partition (having at least two parts) with minimum total size.
class AllMergeSelector : public IMergeSelector
{
public:
    /// Parameter max_total_size_to_merge is ignored.
    PartsRange select(
        const PartsRanges & parts_ranges,
        size_t max_total_size_to_merge) override;
};

}