title: How to convert Rdd to dataset using mapPartitions Function
body: <p>I am trying to convert a java spark RDD to dataset.</p>
  
  <p>According to spark doc. mapPartitions is faster than map function.</p>
  
  <p>it will help to improve performance of spark.</p>