scala broadcast

scala> val broadcastVar = sc.broadcast(Array(1, 2, 3))
broadcastVar: org.apache.spark.broadcast.Broadcast[Array[Int]] = Broadcast(0)


scala> broadcastVar.value
res0: Array[Int] = Array(1, 2, 3)
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页