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