title: How do I extract the first tuple from a generated bag (whose size might vary) in PIG?
body: <p>I am generating a 'bag' of information whose size (number of tuples inside the the bag) might vary. From this, I want to extract the first element on the fly. How do I do this?</p>