title: Transposing a part of the rdd row
body: <p>I have a requirement where I need to transpose only certain elements of each RDD row element. I have below input file.</p>
  
  <pre><code>sno|fname |lname |f1 |f2  |f3  |f4
  1  |sunil |kumar |500|1000|2000|3000
  2  |mahesh|kalani|600|700 |800 |1000
  </code></pre>
  
  <p>I need the oputput as below.</p>
  
  <pre><code>1|sunil |kumar |f1|500
  1|sunil |kumar |f2|1000
  1|sunil |kumar |f3|2000
  1|sunil |kumar |f4|3000
  2|mahesh|kalani|f1|600
  2|mahesh|kalani|f2|700
  2|mahesh|kalani|f3|800
  2|mahesh|kalani|f4|1000
  </code></pre>
  
  <p>How can I write a mapper function on the RDD to get the output?</p>