Added setter method setGenerator to JavaRDD.
Added mapPartitions method to JavaRDD.
Added foreachPartition method to JavaRDD.