public class FloatConfOption extends AbstractConfOption
Constructor and Description |
---|
FloatConfOption(String key,
float defaultValue,
String description)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
get(org.apache.hadoop.conf.Configuration conf)
Lookup value
|
float |
getDefaultValue() |
String |
getDefaultValueStr()
Get string representation of default value
|
ConfOptionType |
getType()
Get type this option holds
|
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,
float value)
Set value
|
void |
setIfUnset(org.apache.hadoop.conf.Configuration conf,
float value)
Set value if it's not already present
|
compareTo, contains, equals, getDescription, getKey, hashCode, toString
public float getDefaultValue()
public boolean isDefaultValue(org.apache.hadoop.conf.Configuration conf)
AbstractConfOption
isDefaultValue
in class AbstractConfOption
conf
- Configurationpublic String getDefaultValueStr()
AbstractConfOption
getDefaultValueStr
in class AbstractConfOption
public ConfOptionType getType()
AbstractConfOption
getType
in class AbstractConfOption
public float get(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic void set(org.apache.hadoop.conf.Configuration conf, float value)
conf
- Configurationvalue
- to setpublic void setIfUnset(org.apache.hadoop.conf.Configuration conf, float value)
conf
- Configurationvalue
- to setCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.