Package org.apache.flink.python.env
Interface PythonEnvironmentManager
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractPythonEnvironmentManager,EmbeddedPythonEnvironmentManager,ProcessPythonEnvironmentManager
The base interface of python environment manager which is used to create the PythonEnvironment
object used to execute Python functions.
-
Method Summary
Modifier and TypeMethodDescriptionCreates the PythonEnvironment object used to execute Python functions.voidopen()Initialize the environment manager.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
open
Initialize the environment manager.- Throws:
Exception
-
createEnvironment
Creates the PythonEnvironment object used to execute Python functions.- Returns:
- The PythonEnvironment object which represents the environment(embedded thread, process, docker, etc) the python worker would run in.
- Throws:
Exception
-