Package org.apache.flink.python.env
Interface PythonEnvironmentManager
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractPythonEnvironmentManager
,EmbeddedPythonEnvironmentManager
,ProcessPythonEnvironmentManager
@Internal public interface PythonEnvironmentManager extends AutoCloseable
The base interface of python environment manager which is used to create the PythonEnvironment object used to execute Python functions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PythonEnvironment
createEnvironment()
Creates the PythonEnvironment object used to execute Python functions.void
open()
Initialize the environment manager.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
createEnvironment
PythonEnvironment createEnvironment() throws Exception
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
-
-