Package org.apache.flink.python.util
Class PythonDependencyUtils
- java.lang.Object
-
- org.apache.flink.python.util.PythonDependencyUtils
-
@Internal public class PythonDependencyUtils extends Object
Utility class for Python dependency management. The dependencies will be registered at the distributed cache.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE
static String
FILE
static String
FILE_DELIMITER
static String
PARAM_DELIMITER
-
Constructor Summary
Constructors Constructor Description PythonDependencyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.flink.configuration.Configuration
configurePythonDependencies(org.apache.flink.configuration.ReadableConfig config)
Adds python dependencies to registered cache file list according to given configuration and returns a new configuration which contains the metadata of the registered python dependencies.static void
merge(org.apache.flink.configuration.Configuration config, org.apache.flink.configuration.Configuration pythonConfiguration)
static org.apache.flink.configuration.Configuration
parsePythonDependencyConfiguration(org.apache.commons.cli.CommandLine commandLine)
-
-
-
Field Detail
-
FILE
public static final String FILE
- See Also:
- Constant Field Values
-
CACHE
public static final String CACHE
- See Also:
- Constant Field Values
-
FILE_DELIMITER
public static final String FILE_DELIMITER
- See Also:
- Constant Field Values
-
PARAM_DELIMITER
public static final String PARAM_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
configurePythonDependencies
public static org.apache.flink.configuration.Configuration configurePythonDependencies(org.apache.flink.configuration.ReadableConfig config)
Adds python dependencies to registered cache file list according to given configuration and returns a new configuration which contains the metadata of the registered python dependencies.- Parameters:
config
- The configuration which contains python dependency configuration.- Returns:
- A new configuration which contains the metadata of the registered python dependencies.
-
parsePythonDependencyConfiguration
public static org.apache.flink.configuration.Configuration parsePythonDependencyConfiguration(org.apache.commons.cli.CommandLine commandLine)
-
merge
public static void merge(org.apache.flink.configuration.Configuration config, org.apache.flink.configuration.Configuration pythonConfiguration)
-
-