2017-12-04 15:44:31 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
#include <Storages/IStorage.h>
|
2017-12-12 15:54:03 +00:00
|
|
|
#include <Storages/System/StorageSystemPartsBase.h>
|
2017-12-04 15:44:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
2017-12-12 15:54:03 +00:00
|
|
|
/** Implements system table 'parts_columns' which allows to get information about
|
|
|
|
* columns in data parts for tables of MergeTree family.
|
|
|
|
*/
|
|
|
|
class StorageSystemPartsColumns
|
|
|
|
: public ext::shared_ptr_helper<StorageSystemPartsColumns>, public StorageSystemPartsBase
|
2017-12-04 15:44:31 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemPartsColumns"; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
StorageSystemPartsColumns(const std::string & name_);
|
2017-12-28 18:20:53 +00:00
|
|
|
void processNextStorage(MutableColumns & columns, const StoragesInfo & info, bool has_state_column) override;
|
2017-12-04 15:44:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|