2014-08-22 00:57:20 +00:00
|
|
|
#include <DB/Functions/FunctionFactory.h>
|
|
|
|
#include <DB/Functions/FunctionsCoding.h>
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void registerFunctionsCoding(FunctionFactory & factory)
|
|
|
|
{
|
2014-10-29 12:25:33 +00:00
|
|
|
#define F [](const Context & context) -> IFunction *
|
2014-08-22 00:57:20 +00:00
|
|
|
|
|
|
|
factory.registerFunction("toStringCutToZero", F { return new FunctionToStringCutToZero; });
|
2014-10-29 12:25:33 +00:00
|
|
|
factory.registerFunction("IPv6NumToString", F { return new FunctionIPv6NumToString; });
|
2014-10-29 12:49:19 +00:00
|
|
|
factory.registerFunction("IPv6StringToNum", F { return new FunctionIPv6StringToNum; });
|
2014-08-22 00:57:20 +00:00
|
|
|
factory.registerFunction("IPv4NumToString", F { return new FunctionIPv4NumToString; });
|
|
|
|
factory.registerFunction("IPv4StringToNum", F { return new FunctionIPv4StringToNum; });
|
|
|
|
factory.registerFunction("hex", F { return new FunctionHex; });
|
|
|
|
factory.registerFunction("unhex", F { return new FunctionUnhex; });
|
|
|
|
factory.registerFunction("bitmaskToArray", F { return new FunctionBitmaskToArray; });
|
|
|
|
|
|
|
|
#undef F
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|