public static List<RegionInfo> getTableRegions(Connection connection, TableName tableName,
    final boolean excludeOfflinedSplitParents) throws IOException {
    List<Pair<RegionInfo, ServerName>> result =
      getTableRegionsAndLocations(connection, tableName, excludeOfflinedSplitParents);
    return getListOfRegionInfos(result);
  }
Gets all of the regions of the specified table. Do not use this method to get meta table
regions, use methods in MetaTableLocator instead.
@param connection                  connection we're using
@param tableName                   table we're looking for
@param excludeOfflinedSplitParents If true, do not include offlined split parents in the
                                   return.
@return Ordered list of {@link RegionInfo}.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java