public class MapConfigurationProvider extends Object implements ConfigurationProvider
Constructor and Description |
---|
MapConfigurationProvider()
Construct with null properties.
|
MapConfigurationProvider(Map props)
Constructor; supply properties map.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Map props)
Add the given properties to those in this provider, overwriting
any existing properties under the same keys.
|
Object |
addProperty(String key,
Object value)
Add a single property, overwriting any existing property under the
same key.
|
Map |
getProperties()
Return properties loaded thus far, or empty map if none.
|
void |
setInto(Configuration conf)
Set loaded information into the given configuration.
|
protected void |
setInto(Configuration conf,
Log log)
Set properties into configuration.
|
public MapConfigurationProvider()
public MapConfigurationProvider(Map props)
public Map getProperties()
ConfigurationProvider
getProperties
in interface ConfigurationProvider
public void addProperties(Map props)
ConfigurationProvider
addProperties
in interface ConfigurationProvider
public Object addProperty(String key, Object value)
ConfigurationProvider
addProperty
in interface ConfigurationProvider
public void setInto(Configuration conf)
ConfigurationProvider
setInto
in interface ConfigurationProvider
protected void setInto(Configuration conf, Log log)
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.