2019-06-20 09:12:49 +00:00
|
|
|
#include "FunctionsHashing.h"
|
2014-08-22 00:57:20 +00:00
|
|
|
|
2019-06-20 09:12:49 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
2019-12-29 01:13:17 +00:00
|
|
|
|
2014-08-22 00:57:20 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void registerFunctionsHashing(FunctionFactory & factory)
|
|
|
|
{
|
2019-03-22 11:18:24 +00:00
|
|
|
#if USE_SSL
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionHalfMD5>();
|
|
|
|
factory.registerFunction<FunctionMD5>();
|
|
|
|
factory.registerFunction<FunctionSHA1>();
|
|
|
|
factory.registerFunction<FunctionSHA224>();
|
|
|
|
factory.registerFunction<FunctionSHA256>();
|
2019-03-22 11:18:24 +00:00
|
|
|
#endif
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionSipHash64>();
|
|
|
|
factory.registerFunction<FunctionSipHash128>();
|
|
|
|
factory.registerFunction<FunctionCityHash64>();
|
2020-10-31 12:45:53 +00:00
|
|
|
factory.registerFunction<FunctionFarmFingerprint64>();
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionFarmHash64>();
|
|
|
|
factory.registerFunction<FunctionMetroHash64>();
|
|
|
|
factory.registerFunction<FunctionIntHash32>();
|
|
|
|
factory.registerFunction<FunctionIntHash64>();
|
|
|
|
factory.registerFunction<FunctionURLHash>();
|
2018-12-11 08:41:23 +00:00
|
|
|
factory.registerFunction<FunctionJavaHash>();
|
2019-11-06 10:46:37 +00:00
|
|
|
factory.registerFunction<FunctionJavaHashUTF16LE>();
|
2018-12-11 08:41:23 +00:00
|
|
|
factory.registerFunction<FunctionHiveHash>();
|
2020-04-16 12:31:57 +00:00
|
|
|
#if !defined(ARCADIA_BUILD)
|
2018-08-02 09:21:26 +00:00
|
|
|
factory.registerFunction<FunctionMurmurHash2_32>();
|
|
|
|
factory.registerFunction<FunctionMurmurHash2_64>();
|
|
|
|
factory.registerFunction<FunctionMurmurHash3_32>();
|
|
|
|
factory.registerFunction<FunctionMurmurHash3_64>();
|
|
|
|
factory.registerFunction<FunctionMurmurHash3_128>();
|
2019-01-09 02:03:50 +00:00
|
|
|
factory.registerFunction<FunctionGccMurmurHash>();
|
2020-04-16 12:31:57 +00:00
|
|
|
#endif
|
2018-12-23 19:25:40 +00:00
|
|
|
|
|
|
|
#if USE_XXHASH
|
2018-12-21 17:53:16 +00:00
|
|
|
factory.registerFunction<FunctionXxHash32>();
|
|
|
|
factory.registerFunction<FunctionXxHash64>();
|
2018-12-23 19:25:40 +00:00
|
|
|
#endif
|
2014-08-22 00:57:20 +00:00
|
|
|
}
|
|
|
|
}
|