avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hammerbacher (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-155) Make avro.io.DataFileReader iterable
Date Mon, 19 Oct 2009 10:50:31 GMT

    [ https://issues.apache.org/jira/browse/AVRO-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12767284#action_12767284
] 

Jeff Hammerbacher commented on AVRO-155:
----------------------------------------

Thanks Sharad! Feel free to commit or ignore as you see fit.

> Make avro.io.DataFileReader iterable
> ------------------------------------
>
>                 Key: AVRO-155
>                 URL: https://issues.apache.org/jira/browse/AVRO-155
>             Project: Avro
>          Issue Type: Improvement
>          Components: python
>            Reporter: Jeff Hammerbacher
>         Attachments: AVRO-155.patch, AVRO-155_with_test.patch
>
>
> When reading records out of a file object container using the Python bindings, it would
be great to be able to say:
> {code}
> for record in dfr:
>   <do something with record>
> {code}
> There's already a "next()" method defined on the DataFileReader, but the __iter__ method
is not defined and we "return None" instead of "raise StopIteration" when out of records.

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


Mime
View raw message