1 scala return-type apache-spark
我有一个Scala函数,其显式返回类型为RDD:
def myfunction(x:Int):RDD = {
if (x==1) {
formRDD()
} else {
}
}
Run Code Online (Sandbox Code Playgroud)
如果我不想形成一个空的RDD,我不知道如何处理其他问题.
| 归档时间: |
|
| 查看次数: |
538 次 |
| 最近记录: |