2011-09-19 03:40:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Poco/RegularExpression.h>
|
|
|
|
|
|
|
|
#include <DB/AggregateFunctions/IAggregateFunction.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/** Позволяет создать агрегатную функцию по её имени.
|
|
|
|
*/
|
|
|
|
class AggregateFunctionFactory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AggregateFunctionFactory();
|
2011-09-25 05:07:47 +00:00
|
|
|
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;
|
2011-09-19 03:40:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|