Package org.apache.flink.table.factories
Interface FunctionDefinitionFactory
-
@PublicEvolving public interface FunctionDefinitionFactory
A factory to createFunctionDefinition
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
FunctionDefinitionFactory.Context
Context provided when a function definition is created.
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default FunctionDefinition
createFunctionDefinition(String name, CatalogFunction catalogFunction)
Deprecated.Please implementcreateFunctionDefinition(String, CatalogFunction, Context)
instead.default FunctionDefinition
createFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context)
Creates aFunctionDefinition
from givenCatalogFunction
with the givenFunctionDefinitionFactory.Context
containing the class loader of the current session, which is useful when it's needed to load class from class name.
-
-
-
Method Detail
-
createFunctionDefinition
@Deprecated default FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction)
Deprecated.Please implementcreateFunctionDefinition(String, CatalogFunction, Context)
instead.Creates aFunctionDefinition
from givenCatalogFunction
.- Parameters:
name
- name of theCatalogFunction
catalogFunction
- the catalog function- Returns:
- a
FunctionDefinition
-
createFunctionDefinition
default FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context)
Creates aFunctionDefinition
from givenCatalogFunction
with the givenFunctionDefinitionFactory.Context
containing the class loader of the current session, which is useful when it's needed to load class from class name.The default implementation will call
createFunctionDefinition(String, CatalogFunction)
directly.- Parameters:
name
- name of theCatalogFunction
catalogFunction
- the catalog functioncontext
- theFunctionDefinitionFactory.Context
for creating function definition- Returns:
- a
FunctionDefinition
-
-