hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlie Groves (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-56) implement Iterable<Tuple> in DataBag
Date Wed, 09 Jan 2008 03:13:33 GMT
implement Iterable<Tuple> in DataBag

                 Key: PIG-56
                 URL: https://issues.apache.org/jira/browse/PIG-56
             Project: Pig
          Issue Type: Improvement
            Reporter: Charlie Groves
            Priority: Minor

Now that DataBag has an iterator method, it can implement Iterable with no other changes.
 This would allow bags to be used in a foreach loop like 
for(Tuple t : bag) {
  // do something with t

The attached patch has DataBag implement iterable and converts all bag iterator usages in
pig to use foreach loops.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message