title: store data into a path based on a field's value in the tuple
body: <pre><code>{'aaa', 'bbb', 'ccc'}
  ....
  </code></pre>
  
  <p>Let's suppose above tupple gets loaded with following schema:</p>
  
  <pre><code>   as (firstField:chararray, secondField:chararray, thirdField:chararray)
  </code></pre>
  
  <p>I want to store the tuple in HDFS with the path based on 2nd field (which is 'bbb' in above example). So the above tuple would get stored in the path</p>
  
  <pre><code> /SomeBaseDir/bbb/testoutput.txt
  </code></pre>
  
  <p>Any help would be appreciated.</p>