mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <DataTypes/DataTypeArray.h>
|
|
#include <DataTypes/DataTypeString.h>
|
|
#include <DataTypes/DataTypesNumber.h>
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
#include <Storages/MergeTree/MergeTreeData.h>
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Provides information about Graphite configuration.
|
|
class StorageSystemGraphite final : public ext::shared_ptr_helper<StorageSystemGraphite>, public IStorageSystemOneBlock<StorageSystemGraphite>
|
|
{
|
|
friend struct ext::shared_ptr_helper<StorageSystemGraphite>;
|
|
public:
|
|
std::string getName() const override { return "SystemGraphite"; }
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
struct Config
|
|
{
|
|
Graphite::Params graphite_params;
|
|
Array databases;
|
|
Array tables;
|
|
};
|
|
|
|
using Configs = std::map<const String, Config>;
|
|
|
|
|
|
protected:
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
|
|
};
|
|
|
|
}
|