avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-540) make GenericArray reversible
Date Thu, 13 May 2010 21:46:47 GMT

    [ https://issues.apache.org/jira/browse/AVRO-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867265#action_12867265

Doug Cutting commented on AVRO-540:

Nevermind.  It is overriding a method that has javadoc!  +1 as-is.

> make GenericArray reversible
> ----------------------------
>                 Key: AVRO-540
>                 URL: https://issues.apache.org/jira/browse/AVRO-540
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>    Affects Versions: 1.3.2
>            Reporter: Eric Evans
>            Assignee: Eric Evans
>            Priority: Minor
>         Attachments: 0001-AVRO-540.-reverse-method-for-generic-arrays.patch
> There are a number of RPC methods in Cassandra that return ordered results (ordered by
pluggable comparators, avro's ordering won't work), and each has a means of specifying that
the order be reversed. The way this is currently done is to use a List to process the results,
Collections.reverse() to reorder if needed, and then copy them to a GenericArray to be returned.
It would be nice to avoid this intermediary step.
> The patch that follows adds a reverse() method to GenericData.Array that simply reverses
the order of the elements in the underlying Object[].

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

View raw message