2017-04-01 09:19:00 +00:00
|
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
#include <Functions/FunctionsCoding.h>
|
2019-12-29 01:13:17 +00:00
|
|
|
|
2014-08-22 00:57:20 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-09-06 03:17:06 +00:00
|
|
|
struct NameFunctionIPv4NumToString { static constexpr auto name = "IPv4NumToString"; };
|
|
|
|
struct NameFunctionIPv4NumToStringClassC { static constexpr auto name = "IPv4NumToStringClassC"; };
|
|
|
|
|
|
|
|
|
2014-08-22 00:57:20 +00:00
|
|
|
void registerFunctionsCoding(FunctionFactory & factory)
|
|
|
|
{
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionToStringCutToZero>();
|
|
|
|
factory.registerFunction<FunctionIPv6NumToString>();
|
|
|
|
factory.registerFunction<FunctionCutIPv6>();
|
|
|
|
factory.registerFunction<FunctionIPv6StringToNum>();
|
2017-09-06 03:17:06 +00:00
|
|
|
factory.registerFunction<FunctionIPv4NumToString<0, NameFunctionIPv4NumToString>>();
|
|
|
|
factory.registerFunction<FunctionIPv4NumToString<1, NameFunctionIPv4NumToStringClassC>>();
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionIPv4StringToNum>();
|
|
|
|
factory.registerFunction<FunctionIPv4ToIPv6>();
|
2017-05-08 10:02:10 +00:00
|
|
|
factory.registerFunction<FunctionMACNumToString>();
|
2017-07-23 06:13:57 +00:00
|
|
|
factory.registerFunction<FunctionMACStringTo<ParseMACImpl>>();
|
|
|
|
factory.registerFunction<FunctionMACStringTo<ParseOUIImpl>>();
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionUUIDNumToString>();
|
|
|
|
factory.registerFunction<FunctionUUIDStringToNum>();
|
|
|
|
factory.registerFunction<FunctionHex>();
|
|
|
|
factory.registerFunction<FunctionUnhex>();
|
2019-10-25 10:43:52 +00:00
|
|
|
factory.registerFunction<FunctionChar>(FunctionFactory::CaseInsensitive);
|
2017-04-01 07:20:54 +00:00
|
|
|
factory.registerFunction<FunctionBitmaskToArray>();
|
2018-12-13 13:41:47 +00:00
|
|
|
factory.registerFunction<FunctionToIPv4>();
|
|
|
|
factory.registerFunction<FunctionToIPv6>();
|
2019-05-02 13:04:24 +00:00
|
|
|
factory.registerFunction<FunctionIPv6CIDRToRange>();
|
|
|
|
factory.registerFunction<FunctionIPv4CIDRToRange>();
|
2020-12-22 08:06:33 +00:00
|
|
|
factory.registerFunction<FunctionIsIPv4String>();
|
|
|
|
factory.registerFunction<FunctionIsIPv6String>();
|
2014-08-22 00:57:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|