摘要: #构造case class,利用反射机制隐式转换 scala> import spark.implicits._ scala> val rdd= sc.textFile("input/textdata.txt") scala> case class Person(id:Int,name:String) scala> val df = rdd.map(_.split(",")).map(x=>... 阅读全文
posted @ 2017-12-07 11:29 aj117 阅读(12831) 评论(0) 推荐(0) 编辑