Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-20097

Merge TableDescriptors#getAll and TableDescriptors#getAllDescriptors into one

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • Reviewed

    Description

      @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;
      }

      The returned map from #getAllDescriptors isn't a inner object so doing the clone is meaningless.

      Attachments

        1. HBASE-20097.v0.patch
          5 kB
          Chia-Ping Tsai

        Activity

          People

            chia7712 Chia-Ping Tsai
            chia7712 Chia-Ping Tsai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: