ClickHouse/src/Storages/System/StorageSystemParts.h

28 lines
749 B
C++
Raw Normal View History

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