title: Loading protobuf format file into pig script using loadfunc pig UDF
body: <p>I have very little knowledge of pig. I have protobuf format data file. I need to load this file into a pig script. I need to write a LoadFunc UDF to load it. say function is <code>Protobufloader()</code>. </p>
  
  <p>my PIG script would be </p>
  
  <pre><code>A = LOAD 'abc_protobuf.dat' USING Protobufloader() as (name, phonenumber, email);
  </code></pre>
  
  <p>All i wish to know is How do i get the file input stream. Once i get hold of file input stream, i can parse the data from protobuf format to PIG tuple format. </p>
  
  <p>PS: thanks in advance</p>