hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-8240) CompoundConfiguration should implement Iterable
Date Tue, 02 Apr 2013 03:31:15 GMT
Ted Yu created HBASE-8240:

             Summary: CompoundConfiguration should implement Iterable
                 Key: HBASE-8240
                 URL: https://issues.apache.org/jira/browse/HBASE-8240
             Project: HBase
          Issue Type: Bug
            Reporter: Ted Yu

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();
This enhancement would be useful in scenario where a mutable Configuration is required.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message