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 void
close()
PythonFunction
getPythonFunction(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 PythonFunction getPythonFunction(String moduleName, String objectName)
Description copied from interface:PythonFunctionFactory
Returns PythonFunction according to moduleName and objectName.- Specified by:
getPythonFunction
in 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-