2

py4jを使用してjvmをトリガーするときに、scala/javaで行われるように型キャストを行う方法はありますか?

基本的に、私はこれを翻訳したいと思います:

someOtherTypeInstance.asInstanceOf[RDD[Any]]

次のようなものに:

someOtherTypeInstance = gateway.jvm.getSomeOtherTypeInstance()
someOtherTypeInstance.asInstanceOf(gateway.jvm.RDD[Any]) // don't know how to deal with generics
4

1 に答える 1