public static HDFSBlocksDistribution computeHDFSBlocksDistribution(Configuration conf,
    TableDescriptor tableDescriptor, RegionInfo regionInfo) throws IOException {
    Path tablePath =
      CommonFSUtils.getTableDir(CommonFSUtils.getRootDir(conf), tableDescriptor.getTableName());
    return computeHDFSBlocksDistribution(conf, tableDescriptor, regionInfo, tablePath);
  }
This is a helper function to compute HDFS block distribution on demand
@param conf            configuration
@param tableDescriptor TableDescriptor of the table
@param regionInfo      encoded name of the region
@return The HDFS blocks distribution for the given region.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java