Constructor and 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) |
Modifier and Type | Method and 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() |
public PythonDependencyInfo(@Nonnull Map<String,String> pythonFiles, @Nullable String requirementsFilePath, @Nullable String requirementsCacheDir, @Nonnull Map<String,String> archives, @Nonnull String pythonExec)
public String getPythonExec()
public String getExecutionMode()
public static PythonDependencyInfo create(ReadableConfig config, DistributedCache distributedCache)
config
- The config.distributedCache
- The DistributedCache object of current task.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.