public class StrConfOption extends AbstractConfOption
| Constructor and Description | 
|---|
| StrConfOption(String key,
             String defaultValue,
             String description)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| String | get(org.apache.hadoop.conf.Configuration conf)Lookup value | 
| String[] | getArray(org.apache.hadoop.conf.Configuration conf)Get array of values for key | 
| String | getDefaultValue() | 
| String | getDefaultValueStr()Get string representation of default value | 
| List<String> | getList(org.apache.hadoop.conf.Configuration conf)Get list of values for key | 
| ConfOptionType | getType()Get type this option holds | 
| String | getWithDefault(org.apache.hadoop.conf.Configuration conf,
              String defaultVal)Lookup value with user defined defaultValue | 
| boolean | isDefaultValue(org.apache.hadoop.conf.Configuration conf)Check if the value set is the same as the default value | 
| void | set(org.apache.hadoop.conf.Configuration conf,
   String value)Set value for key | 
| void | setIfUnset(org.apache.hadoop.conf.Configuration conf,
          String value)Set value if not already present | 
compareTo, contains, equals, getDescription, getKey, hashCode, toStringpublic String getDefaultValue()
public boolean isDefaultValue(org.apache.hadoop.conf.Configuration conf)
AbstractConfOptionisDefaultValue in class AbstractConfOptionconf - Configurationpublic String getDefaultValueStr()
AbstractConfOptiongetDefaultValueStr in class AbstractConfOptionpublic ConfOptionType getType()
AbstractConfOptiongetType in class AbstractConfOptionpublic String get(org.apache.hadoop.conf.Configuration conf)
conf - Configurationpublic String getWithDefault(org.apache.hadoop.conf.Configuration conf, String defaultVal)
conf - ConfigurationdefaultVal - default value to usepublic String[] getArray(org.apache.hadoop.conf.Configuration conf)
conf - Configurationpublic List<String> getList(org.apache.hadoop.conf.Configuration conf)
conf - Configurationpublic void set(org.apache.hadoop.conf.Configuration conf,
                String value)
conf - Configurationvalue - to setpublic void setIfUnset(org.apache.hadoop.conf.Configuration conf,
                       String value)
conf - Configurationvalue - to setCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.