public static void scanMetaForTableRegions(Connection connection,
    ClientMetaTableAccessor.Visitor visitor, TableName tableName) throws IOException {
    scanMeta(connection, tableName, QueryType.REGION, Integer.MAX_VALUE, visitor);
  }
Do not use this method to get meta table regions, use methods in MetaTableLocator instead.
@param connection                  connection we're using
@param tableName                   table to work with, can be null for getting all regions
@param excludeOfflinedSplitParents don't return split parents
@return Return list of regioninfos and server addresses.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java