@Override
  public synchronized String toString() {
    return "number of unique hosts in the distribution=" + this.hostAndWeights.size();
  }
Comparator used to sort hosts based on weight
hbase-common/src/main/java/org/apache/hadoop/hbase/HDFSBlocksDistribution.java