你如何在 py4j 上使用 scala.collection.mutable.ArrayBuffer
How do you consume a scala.collection.mutable.ArrayBuffer over py4j
我一般会尝试消耗 SparkListenerJobStart
object in Python, but the py4j bindings do not understand ArrayBuffer
s (or, I guess, scala.collection.Seq
s)。做什么?
像这样转换对象:
list = [arrayBuffer.apply(i)
for i in range(arrayBuffer.length())]
我一般会尝试消耗 SparkListenerJobStart
object in Python, but the py4j bindings do not understand ArrayBuffer
s (or, I guess, scala.collection.Seq
s)。做什么?
像这样转换对象:
list = [arrayBuffer.apply(i)
for i in range(arrayBuffer.length())]