Class PythonDependencyInfo


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

      • 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 Detail

      • getRequirementsFilePath

        public Optional<String> getRequirementsFilePath()
      • getRequirementsCacheDir

        public Optional<String> getRequirementsCacheDir()
      • 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.