public abstract class AbstractConfOption extends Object implements Comparable<AbstractConfOption>
Constructor and Description |
---|
AbstractConfOption(String key,
String description)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AbstractConfOption o) |
boolean |
contains(org.apache.hadoop.conf.Configuration conf)
Check if option is set in configuration
|
boolean |
equals(Object o) |
abstract String |
getDefaultValueStr()
Get string representation of default value
|
String |
getDescription() |
String |
getKey() |
abstract ConfOptionType |
getType()
Get type this option holds
|
int |
hashCode() |
abstract boolean |
isDefaultValue(org.apache.hadoop.conf.Configuration conf)
Check if the value set is the same as the default value
|
String |
toString() |
public String getKey()
public String getDescription()
public boolean contains(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic int compareTo(AbstractConfOption o)
compareTo
in interface Comparable<AbstractConfOption>
public abstract boolean isDefaultValue(org.apache.hadoop.conf.Configuration conf)
conf
- Configurationpublic abstract String getDefaultValueStr()
public abstract ConfOptionType getType()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.