ClickHouse/dbms/Storages/System/StorageSystemParts.h

27 lines
703 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:
2019-08-03 11:02:40 +00:00
explicit StorageSystemParts(const std::string & name_);
2017-12-28 18:20:53 +00:00
void processNextStorage(MutableColumns & columns, const StoragesInfo & info, bool has_state_column) override;
};
}