mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
29 lines
644 B
C++
29 lines
644 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) const;
|
|
AggregateFunctionPtr tryGet(const String & name, const DataTypes & argument_types) const;
|
|
AggregateFunctionPtr getByTypeID(const String & type_id) const;
|
|
};
|
|
|
|
using Poco::SharedPtr;
|
|
|
|
typedef SharedPtr<AggregateFunctionFactory> AggregateFunctionFactoryPtr;
|
|
|
|
|
|
}
|