Extending Java API coverage

Hi,

I have added three methods to JavaRDD

- setPartition
- mapPartitions
- foreachPartitions

Kindly review and merge.