2020-05-06 23:21:13 +00:00
|
|
|
#include "FunctionsMultiStringSearch.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 NameMultiMatchAllIndices
|
|
|
|
{
|
|
|
|
static constexpr auto name = "multiMatchAllIndices";
|
|
|
|
};
|
|
|
|
|
2022-06-25 15:28:15 +00:00
|
|
|
using FunctionMultiMatchAllIndices = FunctionsMultiStringSearch<MultiMatchAllIndicesImpl<NameMultiMatchAllIndices, /*ResultType*/ UInt64, /*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(MultiMatchAllIndices)
|
2020-05-06 23:21:13 +00:00
|
|
|
{
|
|
|
|
factory.registerFunction<FunctionMultiMatchAllIndices>();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|