ClickHouse/src/Storages/System/StorageSystemPartsColumns.h
2021-10-02 10:13:14 +03:00

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;
};
}