mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +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 <common/shared_ptr_helper.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Provides information about Graphite configuration.
|
|
class StorageSystemGraphite final : public shared_ptr_helper<StorageSystemGraphite>, public IStorageSystemOneBlock<StorageSystemGraphite>
|
|
{
|
|
friend struct 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, ContextPtr context, const SelectQueryInfo & query_info) const override;
|
|
};
|
|
|
|
}
|