ClickHouse/src/Functions/FunctionsHashing.cpp

45 lines
1.5 KiB
C++
Raw Normal View History

2019-06-20 09:12:49 +00:00
#include "FunctionsHashing.h"
2019-06-20 09:12:49 +00:00
#include <Functions/FunctionFactory.h>
2019-12-29 01:13:17 +00:00
namespace DB
{
void registerFunctionsHashing(FunctionFactory & factory)
{
#if USE_SSL
factory.registerFunction<FunctionHalfMD5>();
factory.registerFunction<FunctionMD5>();
factory.registerFunction<FunctionSHA1>();
factory.registerFunction<FunctionSHA224>();
factory.registerFunction<FunctionSHA256>();
#endif
factory.registerFunction<FunctionSipHash64>();
factory.registerFunction<FunctionSipHash128>();
factory.registerFunction<FunctionCityHash64>();
2020-10-31 12:45:53 +00:00
factory.registerFunction<FunctionFarmFingerprint64>();
factory.registerFunction<FunctionFarmHash64>();
factory.registerFunction<FunctionMetroHash64>();
factory.registerFunction<FunctionIntHash32>();
factory.registerFunction<FunctionIntHash64>();
factory.registerFunction<FunctionURLHash>();
factory.registerFunction<FunctionJavaHash>();
2019-11-06 10:46:37 +00:00
factory.registerFunction<FunctionJavaHashUTF16LE>();
factory.registerFunction<FunctionHiveHash>();
#if !defined(ARCADIA_BUILD)
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>();
#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
}
}