2017-05-05 20:39:25 +00:00
|
|
|
#include <AggregateFunctions/registerAggregateFunctions.h>
|
|
|
|
|
|
|
|
#include <AggregateFunctions/AggregateFunctionFactory.h>
|
2017-12-24 06:50:11 +00:00
|
|
|
#include <AggregateFunctions/AggregateFunctionCombinatorFactory.h>
|
|
|
|
|
2017-05-05 20:39:25 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-12-24 06:50:11 +00:00
|
|
|
void registerAggregateFunctionAvg(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionCount(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionGroupArray(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionGroupUniqArray(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionGroupArrayInsertAt(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsQuantile(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsSequenceMatch(AggregateFunctionFactory &);
|
2018-05-12 15:49:17 +00:00
|
|
|
void registerAggregateFunctionWindowFunnel(AggregateFunctionFactory &);
|
2018-09-14 18:26:43 +00:00
|
|
|
void registerAggregateFunctionRate(AggregateFunctionFactory &);
|
2017-12-24 06:50:11 +00:00
|
|
|
void registerAggregateFunctionsMinMaxAny(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsStatisticsStable(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsStatisticsSimple(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionSum(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionSumMap(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsUniq(AggregateFunctionFactory &);
|
2018-10-17 11:45:14 +00:00
|
|
|
void registerAggregateFunctionUniqCombined(AggregateFunctionFactory &);
|
2017-12-24 06:50:11 +00:00
|
|
|
void registerAggregateFunctionUniqUpTo(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionTopK(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionsBitwise(AggregateFunctionFactory &);
|
2019-01-31 13:26:11 +00:00
|
|
|
void registerAggregateFunctionsBitmap(AggregateFunctionFactory &);
|
2018-03-14 04:36:41 +00:00
|
|
|
void registerAggregateFunctionsMaxIntersections(AggregateFunctionFactory &);
|
2019-06-26 07:53:43 +00:00
|
|
|
void registerAggregateFunctionHistogram(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionRetention(AggregateFunctionFactory &);
|
|
|
|
void registerAggregateFunctionTimeSeriesGroupSum(AggregateFunctionFactory &);
|
2019-01-22 21:07:05 +00:00
|
|
|
void registerAggregateFunctionMLMethod(AggregateFunctionFactory &);
|
2019-02-02 14:27:43 +00:00
|
|
|
void registerAggregateFunctionEntropy(AggregateFunctionFactory &);
|
2019-05-23 11:51:25 +00:00
|
|
|
void registerAggregateFunctionSimpleLinearRegression(AggregateFunctionFactory &);
|
2019-06-18 14:18:33 +00:00
|
|
|
void registerAggregateFunctionMoving(AggregateFunctionFactory &);
|
2017-12-24 06:50:11 +00:00
|
|
|
|
|
|
|
void registerAggregateFunctionCombinatorIf(AggregateFunctionCombinatorFactory &);
|
|
|
|
void registerAggregateFunctionCombinatorArray(AggregateFunctionCombinatorFactory &);
|
|
|
|
void registerAggregateFunctionCombinatorForEach(AggregateFunctionCombinatorFactory &);
|
|
|
|
void registerAggregateFunctionCombinatorState(AggregateFunctionCombinatorFactory &);
|
|
|
|
void registerAggregateFunctionCombinatorMerge(AggregateFunctionCombinatorFactory &);
|
|
|
|
void registerAggregateFunctionCombinatorNull(AggregateFunctionCombinatorFactory &);
|
2019-06-12 07:46:36 +00:00
|
|
|
void registerAggregateFunctionCombinatorResample(AggregateFunctionCombinatorFactory &);
|
2017-05-05 20:39:25 +00:00
|
|
|
|
|
|
|
void registerAggregateFunctions()
|
|
|
|
{
|
2017-12-24 06:50:11 +00:00
|
|
|
{
|
|
|
|
auto & factory = AggregateFunctionFactory::instance();
|
|
|
|
|
|
|
|
registerAggregateFunctionAvg(factory);
|
|
|
|
registerAggregateFunctionCount(factory);
|
|
|
|
registerAggregateFunctionGroupArray(factory);
|
|
|
|
registerAggregateFunctionGroupUniqArray(factory);
|
|
|
|
registerAggregateFunctionGroupArrayInsertAt(factory);
|
|
|
|
registerAggregateFunctionsQuantile(factory);
|
|
|
|
registerAggregateFunctionsSequenceMatch(factory);
|
2018-05-12 15:49:17 +00:00
|
|
|
registerAggregateFunctionWindowFunnel(factory);
|
2018-09-14 18:26:43 +00:00
|
|
|
registerAggregateFunctionRate(factory);
|
2017-12-24 06:50:11 +00:00
|
|
|
registerAggregateFunctionsMinMaxAny(factory);
|
|
|
|
registerAggregateFunctionsStatisticsStable(factory);
|
|
|
|
registerAggregateFunctionsStatisticsSimple(factory);
|
|
|
|
registerAggregateFunctionSum(factory);
|
|
|
|
registerAggregateFunctionSumMap(factory);
|
|
|
|
registerAggregateFunctionsUniq(factory);
|
2018-10-17 11:45:14 +00:00
|
|
|
registerAggregateFunctionUniqCombined(factory);
|
2017-12-24 06:50:11 +00:00
|
|
|
registerAggregateFunctionUniqUpTo(factory);
|
|
|
|
registerAggregateFunctionTopK(factory);
|
|
|
|
registerAggregateFunctionsBitwise(factory);
|
2019-01-31 13:26:11 +00:00
|
|
|
registerAggregateFunctionsBitmap(factory);
|
2018-03-14 04:36:41 +00:00
|
|
|
registerAggregateFunctionsMaxIntersections(factory);
|
2018-06-22 18:30:09 +00:00
|
|
|
registerAggregateFunctionHistogram(factory);
|
2018-08-16 03:11:35 +00:00
|
|
|
registerAggregateFunctionRetention(factory);
|
2019-05-21 15:33:54 +00:00
|
|
|
registerAggregateFunctionTimeSeriesGroupSum(factory);
|
2019-01-22 21:07:05 +00:00
|
|
|
registerAggregateFunctionMLMethod(factory);
|
2019-02-02 14:27:43 +00:00
|
|
|
registerAggregateFunctionEntropy(factory);
|
2019-05-23 11:51:25 +00:00
|
|
|
registerAggregateFunctionSimpleLinearRegression(factory);
|
2019-06-18 14:18:33 +00:00
|
|
|
registerAggregateFunctionMoving(factory);
|
2017-12-24 06:50:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
auto & factory = AggregateFunctionCombinatorFactory::instance();
|
|
|
|
|
|
|
|
registerAggregateFunctionCombinatorIf(factory);
|
|
|
|
registerAggregateFunctionCombinatorArray(factory);
|
|
|
|
registerAggregateFunctionCombinatorForEach(factory);
|
|
|
|
registerAggregateFunctionCombinatorState(factory);
|
|
|
|
registerAggregateFunctionCombinatorMerge(factory);
|
|
|
|
registerAggregateFunctionCombinatorNull(factory);
|
2019-06-12 07:46:36 +00:00
|
|
|
registerAggregateFunctionCombinatorResample(factory);
|
2017-12-24 06:50:11 +00:00
|
|
|
}
|
2017-05-05 20:39:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|