Package org.apache.flink.client.python
Class PythonFunctionFactoryImpl
- java.lang.Object
-
- org.apache.flink.client.python.PythonFunctionFactoryImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,PythonFunctionFactory
public class PythonFunctionFactoryImpl extends Object implements PythonFunctionFactory, Closeable
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
Constructors Constructor Description PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, org.apache.flink.client.python.PythonEnvUtils.PythonProcessShutdownHook shutdownHook)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.flink.table.functions.python.PythonFunctiongetPythonFunction(String moduleName, String objectName)Returns PythonFunction according to moduleName and objectName.
-
-
-
Constructor Detail
-
PythonFunctionFactoryImpl
public PythonFunctionFactoryImpl(PythonFunctionFactory realPythonFunctionFactory, org.apache.flink.client.python.PythonEnvUtils.PythonProcessShutdownHook shutdownHook)
-
-
Method Detail
-
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
-
-