ClickHouse/dbms/src/Functions/FunctionsHashing.cpp

40 lines
1.3 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>
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>();
factory.registerFunction<FunctionFarmHash64>();
factory.registerFunction<FunctionMetroHash64>();
factory.registerFunction<FunctionIntHash32>();
factory.registerFunction<FunctionIntHash64>();
factory.registerFunction<FunctionURLHash>();
factory.registerFunction<FunctionJavaHash>();
factory.registerFunction<FunctionHiveHash>();
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
}
}