ClickHouse/src/Interpreters/UserDefinedExecutableFunctionFactory.h

32 lines
684 B
C++
Raw Normal View History

2021-09-09 13:47:48 +00:00
#pragma once
#include <functional>
#include <memory>
#include <string>
#include <unordered_map>
#include <Common/NamePrompter.h>
#include <Interpreters/Context_fwd.h>
#include <Functions/IFunction.h>
namespace DB
{
class UserDefinedExecutableFunctionFactory
2021-09-09 13:47:48 +00:00
{
public:
using Creator = std::function<FunctionOverloadResolverPtr(ContextPtr)>;
static UserDefinedExecutableFunctionFactory & instance();
static FunctionOverloadResolverPtr get(const String & function_name, ContextPtr context);
2021-09-09 13:47:48 +00:00
static FunctionOverloadResolverPtr tryGet(const String & function_name, ContextPtr context);
2021-09-09 13:47:48 +00:00
static std::vector<String> getRegisteredNames(ContextPtr context);
2021-09-09 13:47:48 +00:00
};
}