public class HadoopConfiguration extends org.apache.hadoop.conf.Configured implements ResourceConfiguration
| Constructor and Description |
|---|
HadoopConfiguration()
Creates a new instance with an empty Hadoop configuration.
|
HadoopConfiguration(org.apache.hadoop.conf.Configuration configuration)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String keyName,
String defaultValue)
Returns a configuration value for the specified key.
|
ClassLoader |
getClassLoader()
Returns a class loader for this configuration.
|
void |
set(String keyName,
String value)
Sets a configuration value for the specified key.
|
public HadoopConfiguration()
public HadoopConfiguration(org.apache.hadoop.conf.Configuration configuration)
configuration - configuration object to be wrappedIllegalArgumentException - if the parameter is nullpublic String get(String keyName, String defaultValue)
ResourceConfigurationget in interface ResourceConfigurationkeyName - the key namedefaultValue - the default value (nullable)defaultValue if it is not definedpublic void set(String keyName, String value)
ResourceConfigurationset in interface ResourceConfigurationkeyName - the key namevalue - the configuration value, or null to delete its propertypublic ClassLoader getClassLoader()
ResourceConfigurationgetClassLoader in interface ResourceConfigurationCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.