2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsMultiStringFuzzySearch.h"
|
|
|
|
#include "FunctionFactory.h"
|
|
|
|
#include "MultiMatchAllIndicesImpl.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
2020-09-07 18:00:37 +00:00
|
|
|
namespace
|
|
|
|
{
|
2020-05-06 23:21:13 +00:00
|
|
|
|
|
|
|
struct NameMultiFuzzyMatchAllIndices
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiFuzzyMatchAllIndices";
|
|
|
|
};
|
|
|
|
|
|
|
|
using FunctionMultiFuzzyMatchAllIndices = FunctionsMultiStringFuzzySearch<
|
2021-09-21 16:43:46 +00:00
|
|
|
MultiMatchAllIndicesImpl<NameMultiFuzzyMatchAllIndices, UInt64, true>,
|
2020-05-06 23:21:13 +00:00
|
|
|
std::numeric_limits<UInt32>::max()>;
|
|
|
|
|
2020-09-07 18:00:37 +00:00
|
|
|
}
|
|
|
|
|
2020-05-06 23:21:13 +00:00
|
|
|
void registerFunctionMultiFuzzyMatchAllIndices(FunctionFactory & factory)
|
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiFuzzyMatchAllIndices>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|