public static RegionInfo parseRegionInfoFromRegionName(byte[] regionName) throws IOException {
    byte[][] fields = RegionInfo.parseRegionName(regionName);
    long regionId = Long.parseLong(Bytes.toString(fields[2]));
    int replicaId = fields.length > 3 ? Integer.parseInt(Bytes.toString(fields[3]), 16) : 0;
    return RegionInfoBuilder.newBuilder(TableName.valueOf(fields[0])).setStartKey(fields[1])
      .setRegionId(regionId).setReplicaId(replicaId).build();
  }
Returns an HRI parsed from this regionName. Not all the fields of the HRI is stored in the
name, so the returned object should only be used for the fields in the regionName.
<p/>
Since the returned object does not contain all the fields, we do not expose this method in
public API, such as {@link RegionInfo} or {@link RegionInfoBuilder}.
hbase-client/src/main/java/org/apache/hadoop/hbase/CatalogFamilyFormat.java