Package org.apache.flink.client.python
Class PythonFunctionFactoryImpl
java.lang.Object
org.apache.flink.client.python.PythonFunctionFactoryImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,PythonFunctionFactory
Default implementation of PythonFunctionFactory.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.client.python.PythonFunctionFactory
PythonFunctionFactory.CacheKey -
Field Summary
Fields inherited from interface org.apache.flink.client.python.PythonFunctionFactory
CACHE_CLEANUP_EXECUTOR_SERVICE, CACHE_CLEANUP_EXECUTOR_SERVICE_STARTED, PYTHON_FUNCTION_FACTORY_CACHE -
Constructor Summary
ConstructorsConstructorDescriptionPythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, org.apache.flink.client.python.PythonEnvUtils.PythonProcessShutdownHook shutdownHook) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.flink.table.functions.python.PythonFunctiongetPythonFunction(String moduleName, String objectName) Returns PythonFunction according to moduleName and objectName.
-
Constructor Details
-
PythonFunctionFactoryImpl
public PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, org.apache.flink.client.python.PythonEnvUtils.PythonProcessShutdownHook shutdownHook)
-
-
Method Details
-
getPythonFunction
public org.apache.flink.table.functions.python.PythonFunction getPythonFunction(String moduleName, String objectName) Description copied from interface:PythonFunctionFactoryReturns PythonFunction according to moduleName and objectName.- Specified by:
getPythonFunctionin interfacePythonFunctionFactory- Parameters:
moduleName- The module name of the Python UDF.objectName- The function name / class name of the Python UDF.- Returns:
- The PythonFunction object which represents the Python UDF.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-