@InterfaceAudience.Private // For use by internals only.
  public static boolean isEncodedRegionName(byte[] regionName) {
    // If not parseable as region name, presume encoded. TODO: add stringency; e.g. if hex.
    if (parseRegionNameOrReturnNull(regionName) == null) {
      if (regionName.length > MD5_HEX_LENGTH) {
        return false;
      } else if (regionName.length == MD5_HEX_LENGTH) {
        return true;
      } else {
        String encodedName = Bytes.toString(regionName);
        try {
          Integer.parseInt(encodedName);
          // If this is a valid integer, it could be hbase:meta's encoded region name.
          return true;
        } catch (NumberFormatException er) {
          return false;
        }
      }
    }
    return false;
  }
Figure if the passed bytes represent an encoded region name or not.
@param regionName A Region name either encoded or not.
@return True if <code>regionName</code> represents an encoded name.
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionInfo.java