ClickHouse/dbms/src/Storages/System/StorageSystemParts.h

26 lines
623 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 : public ext::shared_ptr_helper<StorageSystemParts>, public StorageSystemPartsBase
{
public:
std::string getName() const override { return "SystemParts"; }
protected:
explicit StorageSystemParts(const std::string & name);
void processNextStorage(Block & block, const StoragesInfo & info, bool has_state_column) override;
};
}