Convert a JavaRDD<Tuple2<Object, long[]>> into a Spark Dataset<Row> in Java
问题 In Java (not Scala!) Spark 3.0.1 have a JavaRDD instance object neighborIdsRDD which its type is JavaRDD<Tuple2<Object, long[]>> . Part of my code related to the generation of the JavaRDD is the following: GraphOps<String, String> graphOps = new GraphOps<>(graph, stringTag, stringTag); JavaRDD<Tuple2<Object, long[]>> neighborIdsRDD = graphOps.collectNeighborIds(EdgeDirection.Either()).toJavaRDD(); I have had to get a JavaRDD using toJavaRDD() because collectNeighborIds returns a org.apache