1 | #pragma once |
---|---|
2 | |
3 | #include <ext/shared_ptr_helper.h> |
4 | #include <Storages/System/StorageSystemPartsBase.h> |
5 | |
6 | |
7 | namespace DB |
8 | { |
9 | |
10 | class Context; |
11 | |
12 | |
13 | /** Implements system table 'parts' which allows to get information about data parts for tables of MergeTree family. |
14 | */ |
15 | class StorageSystemParts : public ext::shared_ptr_helper<StorageSystemParts>, public StorageSystemPartsBase |
16 | { |
17 | friend struct ext::shared_ptr_helper<StorageSystemParts>; |
18 | public: |
19 | std::string getName() const override { return "SystemParts"; } |
20 | |
21 | protected: |
22 | explicit StorageSystemParts(const std::string & name_); |
23 | void processNextStorage(MutableColumns & columns, const StoragesInfo & info, bool has_state_column) override; |
24 | }; |
25 | |
26 | } |
27 |