Package org.apache.flink.table.factories
Interface FunctionDefinitionFactory
@PublicEvolving
public interface FunctionDefinitionFactory
A factory to create
FunctionDefinition.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext provided when a function definition is created. -
Method Summary
Modifier and TypeMethodDescriptioncreateFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context) Creates aFunctionDefinitionfrom givenCatalogFunctionwith the givenFunctionDefinitionFactory.Contextcontaining the class loader of the current session, which is useful when it's needed to load class from class name.
-
Method Details
-
createFunctionDefinition
FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context) Creates aFunctionDefinitionfrom givenCatalogFunctionwith the givenFunctionDefinitionFactory.Contextcontaining the class loader of the current session, which is useful when it's needed to load class from class name.- Parameters:
name- name of theCatalogFunctioncatalogFunction- the catalog functioncontext- theFunctionDefinitionFactory.Contextfor creating function definition- Returns:
- a
FunctionDefinition
-