2014-07-29 14:05:15 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-06-06 17:18:32 +00:00
|
|
|
#include <ext/shared_ptr_helper.h>
|
2017-12-12 15:54:03 +00:00
|
|
|
#include <Storages/System/StorageSystemPartsBase.h>
|
2014-07-29 14:05:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-12-08 02:49:04 +00:00
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
2017-01-17 20:49:16 +00:00
|
|
|
/** Implements system table 'parts' which allows to get information about data parts for tables of MergeTree family.
|
2014-07-29 14:05:15 +00:00
|
|
|
*/
|
2020-03-19 23:48:53 +00:00
|
|
|
class StorageSystemParts final : public ext::shared_ptr_helper<StorageSystemParts>, public StorageSystemPartsBase
|
2014-07-29 14:05:15 +00:00
|
|
|
{
|
2019-08-26 19:07:29 +00:00
|
|
|
friend struct ext::shared_ptr_helper<StorageSystemParts>;
|
2014-07-29 14:05:15 +00:00
|
|
|
public:
|
2017-04-01 07:20:54 +00:00
|
|
|
std::string getName() const override { return "SystemParts"; }
|
2014-07-29 14:05:15 +00:00
|
|
|
|
2017-11-04 03:20:18 +00:00
|
|
|
protected:
|
2020-08-12 20:40:13 +00:00
|
|
|
explicit StorageSystemParts(const StorageID & table_id_);
|
2021-02-21 14:04:55 +00:00
|
|
|
void processNextStorage(
|
|
|
|
MutableColumns & columns, std::vector<UInt8> & columns_mask, const StoragesInfo & info, bool has_state_column) override;
|
2014-07-29 14:05:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|