ClickHouse
214 строк · 12.5 Кб
1#include <AggregateFunctions/registerAggregateFunctions.h>
2
3#include <AggregateFunctions/AggregateFunctionFactory.h>
4#include <AggregateFunctions/Combinators/AggregateFunctionCombinatorFactory.h>
5
6
7namespace DB
8{
9struct Settings;
10
11class AggregateFunctionFactory;
12void registerAggregateFunctionAvg(AggregateFunctionFactory &);
13void registerAggregateFunctionAvgWeighted(AggregateFunctionFactory &);
14void registerAggregateFunctionCount(AggregateFunctionFactory &);
15void registerAggregateFunctionDeltaSum(AggregateFunctionFactory &);
16void registerAggregateFunctionDeltaSumTimestamp(AggregateFunctionFactory &);
17void registerAggregateFunctionGroupArray(AggregateFunctionFactory &);
18void registerAggregateFunctionGroupArraySorted(AggregateFunctionFactory & factory);
19void registerAggregateFunctionGroupUniqArray(AggregateFunctionFactory &);
20void registerAggregateFunctionGroupArrayInsertAt(AggregateFunctionFactory &);
21void registerAggregateFunctionGroupArrayIntersect(AggregateFunctionFactory &);
22void registerAggregateFunctionsQuantile(AggregateFunctionFactory &);
23void registerAggregateFunctionsQuantileDeterministic(AggregateFunctionFactory &);
24void registerAggregateFunctionsQuantileExact(AggregateFunctionFactory &);
25void registerAggregateFunctionsQuantileExactWeighted(AggregateFunctionFactory &);
26void registerAggregateFunctionsQuantileInterpolatedWeighted(AggregateFunctionFactory &);
27void registerAggregateFunctionsQuantileExactLow(AggregateFunctionFactory &);
28void registerAggregateFunctionsQuantileExactHigh(AggregateFunctionFactory &);
29void registerAggregateFunctionsQuantileExactInclusive(AggregateFunctionFactory &);
30void registerAggregateFunctionsQuantileExactExclusive(AggregateFunctionFactory &);
31void registerAggregateFunctionsQuantileTiming(AggregateFunctionFactory &);
32void registerAggregateFunctionsQuantileTimingWeighted(AggregateFunctionFactory &);
33void registerAggregateFunctionsQuantileTDigest(AggregateFunctionFactory &);
34void registerAggregateFunctionsQuantileTDigestWeighted(AggregateFunctionFactory &);
35void registerAggregateFunctionsQuantileBFloat16(AggregateFunctionFactory &);
36void registerAggregateFunctionsQuantileDD(AggregateFunctionFactory &);
37void registerAggregateFunctionsQuantileBFloat16Weighted(AggregateFunctionFactory &);
38void registerAggregateFunctionsQuantileApprox(AggregateFunctionFactory &);
39void registerAggregateFunctionsSequenceMatch(AggregateFunctionFactory &);
40void registerAggregateFunctionWindowFunnel(AggregateFunctionFactory &);
41void registerAggregateFunctionRate(AggregateFunctionFactory &);
42void registerAggregateFunctionsMinMax(AggregateFunctionFactory &);
43void registerAggregateFunctionsArgMinArgMax(AggregateFunctionFactory &);
44void registerAggregateFunctionsAny(AggregateFunctionFactory &);
45void registerAggregateFunctionAnyHeavy(AggregateFunctionFactory &);
46void registerAggregateFunctionsAnyRespectNulls(AggregateFunctionFactory &);
47void registerAggregateFunctionsStatisticsStable(AggregateFunctionFactory &);
48void registerAggregateFunctionsStatisticsSecondMoment(AggregateFunctionFactory &);
49void registerAggregateFunctionsStatisticsThirdMoment(AggregateFunctionFactory &);
50void registerAggregateFunctionsStatisticsFourthMoment(AggregateFunctionFactory &);
51void registerAggregateFunctionsStatisticsCovar(AggregateFunctionFactory &);
52void registerAggregateFunctionsStatisticsCorr(AggregateFunctionFactory &);
53void registerAggregateFunctionsVarianceMatrix(AggregateFunctionFactory &);
54void registerAggregateFunctionSum(AggregateFunctionFactory &);
55void registerAggregateFunctionSumCount(AggregateFunctionFactory &);
56void registerAggregateFunctionSumMap(AggregateFunctionFactory &);
57void registerAggregateFunctionsUniq(AggregateFunctionFactory &);
58void registerAggregateFunctionUniqCombined(AggregateFunctionFactory &);
59void registerAggregateFunctionUniqUpTo(AggregateFunctionFactory &);
60void registerAggregateFunctionTopK(AggregateFunctionFactory &);
61void registerAggregateFunctionsBitwise(AggregateFunctionFactory &);
62void registerAggregateFunctionsBitmap(AggregateFunctionFactory &);
63void registerAggregateFunctionsMaxIntersections(AggregateFunctionFactory &);
64void registerAggregateFunctionHistogram(AggregateFunctionFactory &);
65void registerAggregateFunctionRetention(AggregateFunctionFactory &);
66void registerAggregateFunctionMLMethod(AggregateFunctionFactory &);
67void registerAggregateFunctionEntropy(AggregateFunctionFactory &);
68void registerAggregateFunctionSimpleLinearRegression(AggregateFunctionFactory &);
69void registerAggregateFunctionMoving(AggregateFunctionFactory &);
70void registerAggregateFunctionCategoricalIV(AggregateFunctionFactory &);
71void registerAggregateFunctionAggThrow(AggregateFunctionFactory &);
72void registerAggregateFunctionRankCorrelation(AggregateFunctionFactory &);
73void registerAggregateFunctionMannWhitney(AggregateFunctionFactory &);
74void registerAggregateFunctionWelchTTest(AggregateFunctionFactory &);
75void registerAggregateFunctionStudentTTest(AggregateFunctionFactory &);
76void registerAggregateFunctionMeanZTest(AggregateFunctionFactory &);
77void registerAggregateFunctionCramersV(AggregateFunctionFactory &);
78void registerAggregateFunctionTheilsU(AggregateFunctionFactory &);
79void registerAggregateFunctionContingency(AggregateFunctionFactory &);
80void registerAggregateFunctionCramersVBiasCorrected(AggregateFunctionFactory &);
81void registerAggregateFunctionSingleValueOrNull(AggregateFunctionFactory &);
82void registerAggregateFunctionSequenceNextNode(AggregateFunctionFactory &);
83void registerAggregateFunctionNothing(AggregateFunctionFactory &);
84void registerAggregateFunctionExponentialMovingAverage(AggregateFunctionFactory &);
85void registerAggregateFunctionSparkbar(AggregateFunctionFactory &);
86void registerAggregateFunctionIntervalLengthSum(AggregateFunctionFactory &);
87void registerAggregateFunctionAnalysisOfVariance(AggregateFunctionFactory &);
88void registerAggregateFunctionFlameGraph(AggregateFunctionFactory &);
89void registerAggregateFunctionKolmogorovSmirnovTest(AggregateFunctionFactory & factory);
90void registerAggregateFunctionLargestTriangleThreeBuckets(AggregateFunctionFactory & factory);
91
92class AggregateFunctionCombinatorFactory;
93void registerAggregateFunctionCombinatorIf(AggregateFunctionCombinatorFactory &);
94void registerAggregateFunctionCombinatorArray(AggregateFunctionCombinatorFactory &);
95void registerAggregateFunctionCombinatorForEach(AggregateFunctionCombinatorFactory &);
96void registerAggregateFunctionCombinatorSimpleState(AggregateFunctionCombinatorFactory &);
97void registerAggregateFunctionCombinatorState(AggregateFunctionCombinatorFactory &);
98void registerAggregateFunctionCombinatorMerge(AggregateFunctionCombinatorFactory &);
99void registerAggregateFunctionCombinatorNull(AggregateFunctionCombinatorFactory &);
100void registerAggregateFunctionCombinatorOrFill(AggregateFunctionCombinatorFactory &);
101void registerAggregateFunctionCombinatorResample(AggregateFunctionCombinatorFactory &);
102void registerAggregateFunctionCombinatorDistinct(AggregateFunctionCombinatorFactory &);
103void registerAggregateFunctionCombinatorMap(AggregateFunctionCombinatorFactory & factory);
104void registerAggregateFunctionCombinatorsArgMinArgMax(AggregateFunctionCombinatorFactory & factory);
105
106void registerWindowFunctions(AggregateFunctionFactory & factory);
107
108void registerAggregateFunctions()
109{
110{
111auto & factory = AggregateFunctionFactory::instance();
112
113registerAggregateFunctionAvg(factory);
114registerAggregateFunctionAvgWeighted(factory);
115registerAggregateFunctionCount(factory);
116registerAggregateFunctionDeltaSum(factory);
117registerAggregateFunctionDeltaSumTimestamp(factory);
118registerAggregateFunctionGroupArray(factory);
119registerAggregateFunctionGroupArraySorted(factory);
120registerAggregateFunctionGroupUniqArray(factory);
121registerAggregateFunctionGroupArrayInsertAt(factory);
122registerAggregateFunctionGroupArrayIntersect(factory);
123registerAggregateFunctionsQuantile(factory);
124registerAggregateFunctionsQuantileDeterministic(factory);
125registerAggregateFunctionsQuantileExact(factory);
126registerAggregateFunctionsQuantileExactWeighted(factory);
127registerAggregateFunctionsQuantileInterpolatedWeighted(factory);
128registerAggregateFunctionsQuantileExactLow(factory);
129registerAggregateFunctionsQuantileExactHigh(factory);
130registerAggregateFunctionsQuantileExactInclusive(factory);
131registerAggregateFunctionsQuantileExactExclusive(factory);
132registerAggregateFunctionsQuantileTiming(factory);
133registerAggregateFunctionsQuantileTimingWeighted(factory);
134registerAggregateFunctionsQuantileTDigest(factory);
135registerAggregateFunctionsQuantileTDigestWeighted(factory);
136registerAggregateFunctionsQuantileBFloat16(factory);
137registerAggregateFunctionsQuantileDD(factory);
138registerAggregateFunctionsQuantileBFloat16Weighted(factory);
139registerAggregateFunctionsQuantileApprox(factory);
140registerAggregateFunctionsSequenceMatch(factory);
141registerAggregateFunctionWindowFunnel(factory);
142registerAggregateFunctionRate(factory);
143registerAggregateFunctionsMinMax(factory);
144registerAggregateFunctionsArgMinArgMax(factory);
145registerAggregateFunctionsAny(factory);
146registerAggregateFunctionAnyHeavy(factory);
147registerAggregateFunctionsAnyRespectNulls(factory);
148registerAggregateFunctionsStatisticsStable(factory);
149registerAggregateFunctionsStatisticsSecondMoment(factory);
150registerAggregateFunctionsStatisticsThirdMoment(factory);
151registerAggregateFunctionsStatisticsFourthMoment(factory);
152registerAggregateFunctionsStatisticsCovar(factory);
153registerAggregateFunctionsStatisticsCorr(factory);
154registerAggregateFunctionsVarianceMatrix(factory);
155registerAggregateFunctionSum(factory);
156registerAggregateFunctionSumCount(factory);
157registerAggregateFunctionSumMap(factory);
158registerAggregateFunctionsUniq(factory);
159registerAggregateFunctionUniqCombined(factory);
160registerAggregateFunctionUniqUpTo(factory);
161registerAggregateFunctionTopK(factory);
162registerAggregateFunctionsBitwise(factory);
163registerAggregateFunctionCramersV(factory);
164registerAggregateFunctionTheilsU(factory);
165registerAggregateFunctionContingency(factory);
166registerAggregateFunctionCramersVBiasCorrected(factory);
167registerAggregateFunctionsBitmap(factory);
168registerAggregateFunctionsMaxIntersections(factory);
169registerAggregateFunctionHistogram(factory);
170registerAggregateFunctionRetention(factory);
171registerAggregateFunctionMLMethod(factory);
172registerAggregateFunctionEntropy(factory);
173registerAggregateFunctionSimpleLinearRegression(factory);
174registerAggregateFunctionMoving(factory);
175registerAggregateFunctionCategoricalIV(factory);
176registerAggregateFunctionAggThrow(factory);
177registerAggregateFunctionRankCorrelation(factory);
178registerAggregateFunctionMannWhitney(factory);
179registerAggregateFunctionSequenceNextNode(factory);
180registerAggregateFunctionWelchTTest(factory);
181registerAggregateFunctionStudentTTest(factory);
182registerAggregateFunctionMeanZTest(factory);
183registerAggregateFunctionNothing(factory);
184registerAggregateFunctionSingleValueOrNull(factory);
185registerAggregateFunctionIntervalLengthSum(factory);
186registerAggregateFunctionExponentialMovingAverage(factory);
187registerAggregateFunctionSparkbar(factory);
188registerAggregateFunctionAnalysisOfVariance(factory);
189registerAggregateFunctionFlameGraph(factory);
190registerAggregateFunctionKolmogorovSmirnovTest(factory);
191registerAggregateFunctionLargestTriangleThreeBuckets(factory);
192
193registerWindowFunctions(factory);
194}
195
196{
197auto & factory = AggregateFunctionCombinatorFactory::instance();
198
199registerAggregateFunctionCombinatorIf(factory);
200registerAggregateFunctionCombinatorArray(factory);
201registerAggregateFunctionCombinatorForEach(factory);
202registerAggregateFunctionCombinatorSimpleState(factory);
203registerAggregateFunctionCombinatorState(factory);
204registerAggregateFunctionCombinatorMerge(factory);
205registerAggregateFunctionCombinatorNull(factory);
206registerAggregateFunctionCombinatorOrFill(factory);
207registerAggregateFunctionCombinatorResample(factory);
208registerAggregateFunctionCombinatorDistinct(factory);
209registerAggregateFunctionCombinatorMap(factory);
210registerAggregateFunctionCombinatorsArgMinArgMax(factory);
211}
212}
213
214}
215