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 null
public String get(String keyName, String defaultValue)
ResourceConfiguration
get
in interface ResourceConfiguration
keyName
- the key namedefaultValue
- the default value (nullable)defaultValue
if it is not definedpublic void set(String keyName, String value)
ResourceConfiguration
set
in interface ResourceConfiguration
keyName
- the key namevalue
- the configuration value, or null
to delete its propertypublic ClassLoader getClassLoader()
ResourceConfiguration
getClassLoader
in interface ResourceConfiguration
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.