mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 18:14:03 +00:00
25 lines
589 B
C++
25 lines
589 B
C++
#pragma once
|
|
|
|
#include <Poco/RegularExpression.h>
|
|
|
|
#include <DB/AggregateFunctions/IAggregateFunction.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
|
|
/** Позволяет создать агрегатную функцию по её имени.
|
|
*/
|
|
class AggregateFunctionFactory
|
|
{
|
|
public:
|
|
AggregateFunctionFactory();
|
|
AggregateFunctionPtr get(const String & name, const DataTypes & argument_types, int recursion_level = 0) const;
|
|
AggregateFunctionPtr tryGet(const String & name, const DataTypes & argument_types) const;
|
|
bool isAggregateFunctionName(const String & name, int recursion_level = 0) const;
|
|
};
|
|
|
|
|
|
}
|