2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsMultiStringSearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MultiMatchAnyImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameMultiMatchAny
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiMatchAny";
|
|
|
|
};
|
|
|
|
|
2022-06-25 15:28:15 +00:00
|
|
|
using FunctionMultiMatchAny = FunctionsMultiStringSearch<MultiMatchAnyImpl<NameMultiMatchAny, /*ResultType*/ UInt8, MultiMatchTraits::Find::Any, /*WithEditDistance*/ false>>;
|
2020-05-06 23:21:13 +00:00
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 07:01:39 +00:00
|
|
|
REGISTER_FUNCTION(MultiMatchAny)
|
2020-05-06 23:21:13 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiMatchAny>();
|
|
|
|
}
|
|
|
|
|
2024-02-15 17:12:22 +00:00
|
|
|
FunctionOverloadResolverPtr createInternalMultiMatchAnyOverloadResolver(bool allow_hyperscan, size_t max_hyperscan_regexp_length, size_t max_hyperscan_regexp_total_length, bool reject_expensive_hyperscan_regexps)
|
|
|
|
{
|
|
|
|
return std::make_unique<FunctionToOverloadResolverAdaptor>(std::make_shared<FunctionMultiMatchAny>(allow_hyperscan, max_hyperscan_regexp_length, max_hyperscan_regexp_total_length, reject_expensive_hyperscan_regexps));
|
|
|
|
}
|
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
}
|