I have a method in Scala with below syntax . I want to override this method in a java sub class. I am not sure what will be the equivalent syntax in Java for this method .
def createRecord(rdd: RDD[(String, Array[(String, Int)])])
I have a method in Scala with below syntax . I want to override this method in a java sub class. I am not sure what will be the equivalent syntax in Java for this method .
def createRecord(rdd: RDD[(String, Array[(String, Int)])])
the below is the java equivalent of the scala method createRecord. The reason why Int in scala is converted to an Object in Java is provided here
import org.apache.spark.rdd.RDD;
import scala.Tuple2;
public void createRecord(RDD<Tuple2<String, Tuple2<String, Object>[]>> rdd) {
}