@PublicEvolving public interface FunctionDefinitionFactory
FunctionDefinition
.Modifier and Type | Interface and Description |
---|---|
static interface |
FunctionDefinitionFactory.Context
Context provided when a function definition is created.
|
Modifier and Type | Method and Description |
---|---|
default FunctionDefinition |
createFunctionDefinition(String name,
CatalogFunction catalogFunction)
Deprecated.
Please implement
createFunctionDefinition(String, CatalogFunction,
Context) instead. |
default FunctionDefinition |
createFunctionDefinition(String name,
CatalogFunction catalogFunction,
FunctionDefinitionFactory.Context context)
Creates a
FunctionDefinition from given CatalogFunction with the given FunctionDefinitionFactory.Context containing the class loader of the current session, which is useful when it's needed
to load class from class name. |
@Deprecated default FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction)
createFunctionDefinition(String, CatalogFunction,
Context)
instead.FunctionDefinition
from given CatalogFunction
.name
- name of the CatalogFunction
catalogFunction
- the catalog functionFunctionDefinition
default FunctionDefinition createFunctionDefinition(String name, CatalogFunction catalogFunction, FunctionDefinitionFactory.Context context)
FunctionDefinition
from given CatalogFunction
with the given FunctionDefinitionFactory.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.
name
- name of the CatalogFunction
catalogFunction
- the catalog functioncontext
- the FunctionDefinitionFactory.Context
for creating function definitionFunctionDefinition
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.