1.scala java map转 scala map
import scala.collection.JavaConverters._
var questObj:scala.collection.mutable.Map[String,Any]=
mapAsScalaMapConverter(oneJavaMap).asScala.map(kv=>{((kv._1.toString)->kv._1)})
另外记录一下 java list转dataset/dataframe
QuestInfo是一个javabean,questList是一个QuestInfo的list
val dataset:Dataset[Row]=spark.createDataFrame(questList,classOf[QuestInfo])