mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
c9ce0efa66
- With this, invalid combinations of the FindAny/FindAnyIndex bools are no longer possible and we can remove the corresponding check - Also makes the instantiations more readable.
26 lines
514 B
C++
26 lines
514 B
C++
#include "FunctionsMultiStringSearch.h"
|
|
#include "FunctionFactory.h"
|
|
#include "MultiMatchAnyImpl.h"
|
|
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
|
|
struct NameMultiMatchAny
|
|
{
|
|
static constexpr auto name = "multiMatchAny";
|
|
};
|
|
|
|
using FunctionMultiMatchAny = FunctionsMultiStringSearch<MultiMatchAnyImpl<NameMultiMatchAny, /*ResultType*/ UInt8, MultiMatchTraits::Find::Any, /*WithEditDistance*/ false>>;
|
|
|
|
}
|
|
|
|
void registerFunctionMultiMatchAny(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionMultiMatchAny>();
|
|
}
|
|
|
|
}
|