Description
Here is from hadoop Configuration class:
public class Configuration implements Iterable<Map.Entry<String,String>>,
There're 3 addXX() methods for CompoundConfiguration:
public CompoundConfiguration add(final Configuration conf) { public CompoundConfiguration addWritableMap( final Map<ImmutableBytesWritable, ImmutableBytesWritable> map) { public CompoundConfiguration addStringMap(final Map<String, String> map) {
Parameters to these methods all support iteration.
We can enhance ImmutableConfigMap with the following new method:
public abstract java.util.Iterator iterator();
Then the following method of CompoundConfiguration can be implemented:
public Iterator<Map.Entry<String, String>> iterator() {
This enhancement would be useful in scenario where a mutable Configuration is required.