public static void scanMeta(Connection connection, @Nullable final byte[] startRow,
    @Nullable final byte[] stopRow, QueryType type, final ClientMetaTableAccessor.Visitor visitor)
    throws IOException {
    scanMeta(connection, startRow, stopRow, type, 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