public class StringParameter extends SimpleParameter<String>
defaultValue, hasDefaultValue, name, value| Constructor and Description |
|---|
StringParameter(ParameterizedBase owner,
String name)
Set the parameter name and add this parameter to the list of parameters stored by owner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.flink.api.java.utils.ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
StringParameter |
setDefaultValue(String defaultValue)
Set the default value, used if no value is set by the command-line configuration.
|
String |
toString() |
getUsage, getValue, isHiddenpublic StringParameter(ParameterizedBase owner, String name)
owner - the Parameterized using this Parametername - the parameter namepublic StringParameter setDefaultValue(String defaultValue)
SimpleParametersetDefaultValue in class SimpleParameter<String>defaultValue - the default valuepublic void configure(org.apache.flink.api.java.utils.ParameterTool parameterTool)
ParameterparameterTool - parameter parserCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.