ClickHouse/dbms/src/AggregateFunctions
Marek Vavruša 45bd332460 AggregateFunctionTopK: fix memory usage, performance
* allow separate table key / hash key, and use
  std::string / StringRef for generic variant as
  it has built-in storage and StringRef is supported
  by the hash table, this avoids infinitely
  growing arena with serialised keys
* use power-of-2 size for alpha vector for faster
  binning without using modulo
* use custom grower and allocator for SpaceSaving
  to start with smaller tables
* store computed hash in counter for faster
  reinsertion of smallest element
2017-05-11 18:52:49 +04:00
..
AggregateFunctionArray.cpp Implement ForEach modifier for aggregate functions. 2017-04-16 02:49:11 +03:00
AggregateFunctionArray.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionAvg.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionAvg.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionCount.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionCount.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionDebug.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionFactory.cpp Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
AggregateFunctionFactory.h Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
AggregateFunctionForEach.cpp Fixed -ForEach combinator of aggregate functions [#CLICKHOUSE-2952]. 2017-04-16 06:38:37 +03:00
AggregateFunctionForEach.h ForEach combinator of aggregate functions: little better [#CLICKHOUSE-2952]. 2017-04-16 07:35:21 +03:00
AggregateFunctionGroupArray.cpp Tiny modifications [#CLICKHOUSE-2]. 2017-05-10 01:43:27 -04:00
AggregateFunctionGroupArray.h Tiny modifications [#CLICKHOUSE-2]. 2017-05-10 01:43:27 -04:00
AggregateFunctionGroupArrayInsertAt.cpp Added aggregate function 'groupArrayInsertAt' (for Graphite) [#CLICKHOUSE-2]. 2017-05-10 01:46:23 -04:00
AggregateFunctionGroupArrayInsertAt.h Aggregate function groupArrayInsertAt: development [#CLICKHOUSE-2]. 2017-05-10 04:42:15 -04:00
AggregateFunctionGroupUniqArray.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionGroupUniqArray.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionIf.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionIf.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionMerge.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionMerge.h Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
AggregateFunctionNull.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionNull.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantile.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileDeterministic.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileExact.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileExact.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileExactWeighted.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileExactWeighted.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionQuantileTDigest.h translate comments 2017-04-16 23:17:32 +03:00
AggregateFunctionQuantileTiming.h MemoryTracker: more convenient for investigations [#CLICKHOUSE-2935]. 2017-04-11 00:43:59 +03:00
AggregateFunctionsArgMinMax.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionSequenceMatch.h Try fix freebsd 11-STABLE OCbuild 2017-05-04 18:25:34 +03:00
AggregateFunctionsMinMaxAny.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsMinMaxAny.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsQuantile.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsQuantileDeterministic.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsQuantileTDigest.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsQuantileTiming.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsSequenceMatch.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsStatistics.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsStatistics.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionState.cpp Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
AggregateFunctionState.h Combinator -MergeState now returns AggregateFunction(nested_func). [#CLICKHOUSE-2891] 2017-05-03 20:59:42 -07:00
AggregateFunctionSum.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionSum.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionsUniq.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionTopK.cpp AggregateFunctions: implemented topK(n) 2017-05-03 23:09:52 -07:00
AggregateFunctionTopK.h AggregateFunctionTopK: fix memory usage, performance 2017-05-11 18:52:49 +04:00
AggregateFunctionUniq.h Moved code to cpp [#CLICKHOUSE-2]. 2017-04-08 04:32:05 +03:00
AggregateFunctionUniqUpTo.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
AggregateFunctionUniqUpTo.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
CMakeLists.txt Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
Helpers.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
HelpersMinMaxAny.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
IAggregateFunction.h Less dependencies [#CLICKHOUSE-2952]. 2017-04-16 07:03:14 +03:00
IBinaryAggregateFunction.h Tiny modifications [#CLICKHOUSE-2]. 2017-05-10 01:43:27 -04:00
INullaryAggregateFunction.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
IUnaryAggregateFunction.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
QuantilesCommon.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
registerAggregateFunctions.cpp Added aggregate function 'groupArrayInsertAt' (for Graphite) [#CLICKHOUSE-2]. 2017-05-10 01:46:23 -04:00
registerAggregateFunctions.h Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system 2017-05-05 16:59:18 -07:00
ReservoirSampler.h Less dependencies [#CLICKHOUSE-2]. 2017-04-16 08:40:17 +03:00
ReservoirSamplerDeterministic.h Less dependencies [#CLICKHOUSE-2]. 2017-04-16 08:40:17 +03:00
UniqCombinedBiasData.cpp Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
UniqCombinedBiasData.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00
UniquesHashSet.h Less dependencies [#CLICKHOUSE-2]. 2017-04-16 08:40:17 +03:00
UniqVariadicHash.h Moved headers and sources to same place [#CLICKHOUSE-3]. 2017-04-01 12:22:42 +03:00