Package org.apache.flink.python.env
Class PythonDependencyInfo
- java.lang.Object
-
- org.apache.flink.python.env.PythonDependencyInfo
-
-
Constructor Summary
Constructors Constructor Description PythonDependencyInfo(Map<String,String> pythonFiles, String requirementsFilePath, String requirementsCacheDir, Map<String,String> archives, String pythonExec)
PythonDependencyInfo(Map<String,String> pythonFiles, String requirementsFilePath, String requirementsCacheDir, Map<String,String> archives, String pythonExec, String executionMode, String pythonPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PythonDependencyInfo
create(ReadableConfig config, DistributedCache distributedCache)
Creates PythonDependencyInfo from GlobalJobParameters and DistributedCache.Map<String,String>
getArchives()
String
getExecutionMode()
String
getPythonExec()
Map<String,String>
getPythonFiles()
Optional<String>
getPythonPath()
Optional<String>
getRequirementsCacheDir()
Optional<String>
getRequirementsFilePath()
-
-
-
Method Detail
-
getPythonExec
public String getPythonExec()
-
getExecutionMode
public String getExecutionMode()
-
create
public static PythonDependencyInfo create(ReadableConfig config, DistributedCache distributedCache)
Creates PythonDependencyInfo from GlobalJobParameters and DistributedCache.- Parameters:
config
- The config.distributedCache
- The DistributedCache object of current task.- Returns:
- The PythonDependencyInfo object that contains whole information of python dependency.
-
-