2017-04-01 09:19:00 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsHashing.h>
|
2018-12-23 19:25:40 +00:00
|
|
|
#include <Common/config.h>
|
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>();
|
|
|
|
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>();
|
|
|
|
factory.registerFunction<FunctionHiveHash>();
|
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>();
|
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
|
|
|
}
|
|
|
|
}
|