title: How to create UDF in pig for categorize columns with respect to another filed
body: <p>I want to categorize one column with respect to other column using UDF in pig.</p>
  
  <p>Data i have</p>
  
  <pre><code>Id,name,age
  1,jhon,31
  2,adi,15
  3,sam,25
  4,lina,28
  </code></pre>
  
  <p>Expected output</p>
  
  <pre><code>1,jhon,31,30-35
  2,adi,15,10-15
  3,sam,25,20-25
  4,lina,28,25-30
  </code></pre>
  
  <p>Please suggest</p>