public void addHostsAndBlockWeight(String[] hosts, long weight) {
    addHostsAndBlockWeight(hosts, weight, null);
  }
add some weight to a list of hosts, update the value of unique block weight
@param hosts  the list of the host
@param weight the weight
hbase-common/src/main/java/org/apache/hadoop/hbase/HDFSBlocksDistribution.java