Package | Description |
---|---|
org.apache.flink.api.java.utils |
Modifier and Type | Method and Description |
---|---|
static ParameterTool |
ParameterTool.fromArgs(String[] args)
Returns
ParameterTool for the given arguments. |
static ParameterTool |
ParameterTool.fromGenericOptionsParser(String[] args)
Deprecated.
Please use
org.apache.flink.hadoopcompatibility.HadoopUtils#paramsFromGenericOptionsParser(String[])
from project flink-hadoop-compatibility |
static ParameterTool |
ParameterTool.fromMap(Map<String,String> map)
Returns
ParameterTool for the given map |
static ParameterTool |
ParameterTool.fromPropertiesFile(String path)
Returns
ParameterTool for the given Properties file |
static ParameterTool |
ParameterTool.fromSystemProperties()
Returns
ParameterTool from the system properties. |
ParameterTool |
ParameterTool.mergeWith(ParameterTool other)
Merges two
ParameterTool |
Modifier and Type | Method and Description |
---|---|
void |
RequiredParameters.applyTo(ParameterTool parameterTool)
Check for all required parameters defined:
- has a value been passed
- if not, does the parameter have an associated default value
- does the type of the parameter match the one defined in RequiredParameters
- does the value provided in the parameterTool adhere to the choices defined in the option
If any check fails, a RequiredParametersException is thrown
|
ParameterTool |
ParameterTool.mergeWith(ParameterTool other)
Merges two
ParameterTool |
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.