dataFrame.select($"col1", $"col2").as[(String, String)].collect().toMap 转载于:https://www.cnblogs.com/anxiao/p/11363911.html