ClickHouse/src/Storages/System/StorageSystemGraphite.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
889 B
C++
Raw Normal View History

2017-02-14 14:24:30 +00:00
#pragma once
#include <DataTypes/DataTypeArray.h>
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypesNumber.h>
#include <Storages/System/IStorageSystemOneBlock.h>
#include <Storages/MergeTree/MergeTreeData.h>
2017-02-14 14:24:30 +00:00
namespace DB
{
/// Provides information about Graphite configuration.
class StorageSystemGraphite final : public IStorageSystemOneBlock<StorageSystemGraphite>
2017-02-14 14:24:30 +00:00
{
public:
std::string getName() const override { return "SystemGraphite"; }
static NamesAndTypesList getNamesAndTypes();
2017-02-14 14:24:30 +00:00
struct Config
{
2019-03-07 20:17:06 +00:00
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;
2017-02-14 14:24:30 +00:00
};
}