Class EmbeddedPythonEnvironmentManager
java.lang.Object
org.apache.flink.python.env.AbstractPythonEnvironmentManager
org.apache.flink.python.env.embedded.EmbeddedPythonEnvironmentManager
- All Implemented Interfaces:
AutoCloseable,PythonEnvironmentManager
The base class of python environment manager which is used to create the PythonEnvironment
object. It's used to run python UDF in embedded Python environment.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.flink.python.env.AbstractPythonEnvironmentManager
AbstractPythonEnvironmentManager.PythonLeasedResource -
Field Summary
Fields inherited from class org.apache.flink.python.env.AbstractPythonEnvironmentManager
dependencyInfo, PYFLINK_GATEWAY_DISABLED, PYTHON_ARCHIVES_DIR, PYTHON_FILES_DIR, PYTHON_REQUIREMENTS_CACHE, PYTHON_REQUIREMENTS_DIR, PYTHON_REQUIREMENTS_FILE, PYTHON_REQUIREMENTS_INSTALL_DIR, PYTHON_WORKING_DIR, resource -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedPythonEnvironmentManager(PythonDependencyInfo dependencyInfo, String[] tmpDirectories, Map<String, String> systemEnv, org.apache.flink.api.common.JobID jobID) -
Method Summary
Modifier and TypeMethodDescriptionCreates the PythonEnvironment object used to execute Python functions.Methods inherited from class org.apache.flink.python.env.AbstractPythonEnvironmentManager
close, constructEnvironmentVariables, getBaseDirectory, getPythonEnv, open
-
Constructor Details
-
EmbeddedPythonEnvironmentManager
public EmbeddedPythonEnvironmentManager(PythonDependencyInfo dependencyInfo, String[] tmpDirectories, Map<String, String> systemEnv, org.apache.flink.api.common.JobID jobID)
-
-
Method Details
-
createEnvironment
Description copied from interface:PythonEnvironmentManagerCreates 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
-