Typecasting in Scala

前端 未结 0 1041
故里飘歌
故里飘歌 2020-12-20 10:05

I have an alphanumeric field in an RDD of type AnyRef. Case1: If it\'s 99898, I want to cast it as Long Case2: If it\'s 0099898, I want to cast it as String Case3: If it\'s

相关标签:
回答
  • 消灭零回复
提交回复
热议问题