Class PythonDependencyInfo

java.lang.Object
org.apache.flink.python.env.PythonDependencyInfo

@Internal public final class PythonDependencyInfo extends Object
PythonDependencyInfo contains the information of third-party dependencies.
  • Constructor Details

    • PythonDependencyInfo

      public PythonDependencyInfo(@Nonnull Map<String,String> pythonFiles, @Nullable String requirementsFilePath, @Nullable String requirementsCacheDir, @Nonnull Map<String,String> archives, @Nonnull String pythonExec)
    • PythonDependencyInfo

      public PythonDependencyInfo(@Nonnull Map<String,String> pythonFiles, @Nullable String requirementsFilePath, @Nullable String requirementsCacheDir, @Nonnull Map<String,String> archives, @Nonnull String pythonExec, @Nonnull String executionMode, @Nullable String pythonPath)
  • Method Details

    • getPythonFiles

      public Map<String,String> getPythonFiles()
    • getRequirementsFilePath

      public Optional<String> getRequirementsFilePath()
    • getRequirementsCacheDir

      public Optional<String> getRequirementsCacheDir()
    • getPythonExec

      public String getPythonExec()
    • getArchives

      public Map<String,String> getArchives()
    • getExecutionMode

      public String getExecutionMode()
    • getPythonPath

      public Optional<String> getPythonPath()
    • create

      public static PythonDependencyInfo create(org.apache.flink.configuration.ReadableConfig config, org.apache.flink.api.common.cache.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.