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

33 lines
907 B
C++
Raw Normal View History

2015-04-30 12:43:16 +00:00
#pragma once
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypesNumber.h>
2017-06-06 17:18:32 +00:00
#include <ext/shared_ptr_helper.h>
#include <Storages/System/IStorageSystemOneBlock.h>
2015-04-30 12:43:16 +00:00
2016-12-08 02:49:04 +00:00
2015-04-30 12:43:16 +00:00
namespace DB
{
class Context;
/** Implements system table 'clusters'
* that allows to obtain information about available clusters
* (which may be specified in Distributed tables).
2015-04-30 12:43:16 +00:00
*/
class StorageSystemClusters : public ext::shared_ptr_helper<StorageSystemClusters>, public IStorageSystemOneBlock<StorageSystemClusters>
2015-04-30 12:43:16 +00:00
{
2019-08-26 19:07:29 +00:00
friend struct ext::shared_ptr_helper<StorageSystemClusters>;
2015-04-30 12:43:16 +00:00
public:
std::string getName() const override { return "SystemClusters"; }
static NamesAndTypesList getNamesAndTypes();
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
2015-04-30 12:43:16 +00:00
};
}