hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chia-Ping Tsai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-20097) Merge TableDescriptors#getAll and TableDescriptors#getAllDescriptors into one
Date Tue, 27 Feb 2018 08:36:00 GMT

     [ https://issues.apache.org/jira/browse/HBASE-20097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chia-Ping Tsai updated HBASE-20097:
-----------------------------------
    Attachment: HBASE-20097.v0.patch

> Merge TableDescriptors#getAll and TableDescriptors#getAllDescriptors into one
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-20097
>                 URL: https://issues.apache.org/jira/browse/HBASE-20097
>             Project: HBase
>          Issue Type: Task
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: HBASE-20097.v0.patch
>
>
> {code:java}
> @Override
> public Map<String, TableDescriptor> getAll() throws IOException {
>   Map<String, TableDescriptor> htds = new TreeMap<>();
>   Map<String, TableDescriptor> allDescriptors = getAllDescriptors();
>   for (Map.Entry<String, TableDescriptor> entry : allDescriptors
>       .entrySet()) {
>     htds.put(entry.getKey(), entry.getValue());
>   }
>   return htds;
> }{code}
> The returned map from #getAllDescriptors isn't a inner object so doing the clone is meaningless.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message