SPARK-3789: Updated JavaEdgeRDD class according to EdgeRDD and EdgeRDDImpl class hierarchy. Fixed compile issues.