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

31 lines
797 B
C++
Raw Normal View History

2015-04-24 15:49:30 +00:00
#pragma once
2017-06-06 17:18:32 +00:00
#include <ext/shared_ptr_helper.h>
#include <Storages/System/IStorageSystemOneBlock.h>
2016-12-08 02:49:04 +00:00
2015-04-24 15:49:30 +00:00
namespace DB
{
2016-12-08 02:49:04 +00:00
class Context;
2017-04-16 15:00:33 +00:00
/** Implements `functions`system table, which allows you to get a list
* all normal and aggregate functions.
2015-04-24 15:49:30 +00:00
*/
class StorageSystemFunctions final : public ext::shared_ptr_helper<StorageSystemFunctions>, public IStorageSystemOneBlock<StorageSystemFunctions>
2015-04-24 15:49:30 +00:00
{
2019-08-26 19:07:29 +00:00
friend struct ext::shared_ptr_helper<StorageSystemFunctions>;
2015-04-24 15:49:30 +00:00
public:
std::string getName() const override { return "SystemFunctions"; }
2015-04-24 15:49:30 +00:00
static NamesAndTypesList getNamesAndTypes();
2015-04-24 15:49:30 +00:00
protected:
using IStorageSystemOneBlock::IStorageSystemOneBlock;
2015-04-24 15:49:30 +00:00
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
2015-04-24 15:49:30 +00:00
};
}