public List<String> getTopHosts() {
    HostAndWeight[] hostAndWeights = getTopHostsWithWeights();
    List<String> topHosts = new ArrayList<>(hostAndWeights.length);
    for (HostAndWeight haw : hostAndWeights) {
      topHosts.add(haw.getHost());
    }
    return topHosts;
  }
Return the sorted list of hosts in terms of their weights
hbase-common/src/main/java/org/apache/hadoop/hbase/HDFSBlocksDistribution.java