public static HRegion createHRegion(final RegionInfo info, final Path rootDir,
    final Configuration conf, final TableDescriptor hTableDescriptor, final WAL wal,
    final boolean initialize, RegionServerServices rsRpcServices) throws IOException {
    LOG.info("creating " + info + ", tableDescriptor="
      + (hTableDescriptor == null ? "null" : hTableDescriptor) + ", regionDir=" + rootDir);
    createRegionDir(conf, info, rootDir);
    FileSystem fs = rootDir.getFileSystem(conf);
    Path tableDir = CommonFSUtils.getTableDir(rootDir, info.getTable());
    HRegion region =
      HRegion.newHRegion(tableDir, wal, fs, conf, info, hTableDescriptor, rsRpcServices);
    if (initialize) {
      region.initialize(null);
    }
    return region;
  }
Convenience method creating new HRegions. Used by createTable.
@param info          Info for region to create.
@param rootDir       Root directory for HBase instance
@param wal           shared WAL
@param initialize    - true to initialize the region
@param rsRpcServices An interface we can request flushes against.
@return new HRegion
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java