Package | Description |
---|---|
org.apache.flink.api.java.utils |
Modifier and Type | Method and Description |
---|---|
void |
RequiredParameters.add(Option option)
Add a parameter encapsulated in an
Option object. |
Option |
RequiredParameters.add(String name)
Add a parameter based on its name.
|
ParameterTool |
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.
|
Option |
Option.choices(String... choices)
Restrict the list of possible values of the parameter.
|
Option |
Option.defaultValue(String defaultValue)
Define a default value for the option.
|
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.