mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
30 lines
795 B
C++
30 lines
795 B
C++
#pragma once
|
|
|
|
#include <base/shared_ptr_helper.h>
|
|
#include <Storages/System/StorageSystemPartsBase.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
/** Implements system table 'parts_columns' which allows to get information about
|
|
* columns in data parts for tables of MergeTree family.
|
|
*/
|
|
class StorageSystemPartsColumns final
|
|
: public shared_ptr_helper<StorageSystemPartsColumns>, public StorageSystemPartsBase
|
|
{
|
|
friend struct shared_ptr_helper<StorageSystemPartsColumns>;
|
|
public:
|
|
std::string getName() const override { return "SystemPartsColumns"; }
|
|
|
|
protected:
|
|
StorageSystemPartsColumns(const StorageID & table_id_);
|
|
void processNextStorage(
|
|
MutableColumns & columns, std::vector<UInt8> & columns_mask, const StoragesInfo & info, bool has_state_column) override;
|
|
};
|
|
|
|
}
|