mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
22 lines
533 B
C++
22 lines
533 B
C++
#include "hasAllAny.h"
|
|
#include <Functions/FunctionFactory.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class FunctionArrayHasAll : public FunctionArrayHasAllAny
|
|
{
|
|
public:
|
|
static constexpr auto name = "hasAll";
|
|
static FunctionPtr create(const Context & context) { return std::make_shared<FunctionArrayHasAll>(context); }
|
|
explicit FunctionArrayHasAll(const Context & context_) : FunctionArrayHasAllAny(context_, true, name) {}
|
|
};
|
|
|
|
void registerFunctionHasAll(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionArrayHasAll>();
|
|
}
|
|
|
|
}
|