mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 03:42:48 +00:00
20 lines
395 B
C++
20 lines
395 B
C++
|
#pragma once
|
||
|
|
||
|
#include <DB/Storages/MergeTree/MergeSelector.h>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
/// Select all parts within partition (having at least two parts) with minumum total size.
|
||
|
class AllMergeSelector : public IMergeSelector
|
||
|
{
|
||
|
public:
|
||
|
/// Parameter max_total_size_to_merge is ignored.
|
||
|
PartsInPartition select(
|
||
|
const Partitions & partitions,
|
||
|
const size_t max_total_size_to_merge) override;
|
||
|
};
|
||
|
|
||
|
}
|