avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Zeyliger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-637) GenericArray should implement Collection
Date Mon, 30 Aug 2010 16:26:53 GMT

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

Philip Zeyliger commented on AVRO-637:
--------------------------------------

Patch looks good.  I took a look at it via reviewboard at https://review.cloudera.org/r/745/,
if anyone else is curious what it looks like side-by-side.

> GenericArray should implement Collection
> ----------------------------------------
>
>                 Key: AVRO-637
>                 URL: https://issues.apache.org/jira/browse/AVRO-637
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.5.0
>
>         Attachments: AVRO-637.patch, AVRO-637.patch, AVRO-637.patch
>
>
> It would be nice if Avro arrays were better integrated with Java collections.  The GenericArray
interface permits array element reuse, which is awkward with java.util.Collection.  But if
GenericArray implemented Collection and the Avro runtime permitted arbitrary Collection implementations
to be passed for Arrays then it would simplify many applications.  The runtime could still
reuse elements if an array implemented GenericArray, so performance would not suffer for applications
that, e.g., loop over a data file, reusing instances.

-- 
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