mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
32 lines
842 B
C++
32 lines
842 B
C++
#pragma once
|
|
|
|
#include <DataTypes/DataTypeString.h>
|
|
#include <DataTypes/DataTypesNumber.h>
|
|
#include <ext/shared_ptr_helper.h>
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
/** Implements system table 'clusters'
|
|
* that allows to obtain information about available clusters
|
|
* (which may be specified in Distributed tables).
|
|
*/
|
|
class StorageSystemClusters : public ext::shared_ptr_helper<StorageSystemClusters>, public IStorageSystemOneBlock<StorageSystemClusters>
|
|
{
|
|
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;
|
|
};
|
|
|
|
}
|