incubator-crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CRUNCH-117) Custom subclasses of Tuple don't work with the TupleDeepCopier
Date Wed, 21 Nov 2012 20:11:58 GMT

    [ https://issues.apache.org/jira/browse/CRUNCH-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13502266#comment-13502266
] 

Josh Wills commented on CRUNCH-117:
-----------------------------------

+1-- feel free to commit it. Thanks!
                
> Custom subclasses of Tuple don't work with the TupleDeepCopier
> --------------------------------------------------------------
>
>                 Key: CRUNCH-117
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-117
>             Project: Crunch
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.3.0, 0.4.0
>            Reporter: Josh Wills
>            Assignee: Josh Wills
>             Fix For: 0.5.0
>
>         Attachments: CRUNCH-117b.patch, CRUNCH-117.patch
>
>
> We have the option of serializing custom classes that implement the Tuple interface using
the following method on PTypeFamily:
> PType<T> tuples(Class<T>, ...)
> These classes act somewhat like case classes in Scala, and can be used to give useful
semantics to something that would otherwise be a Tuple4<Integer, String, Double, Integer>
(or some such thing.) Right now, we have a bug in which the static TupleFactory.getTupleFactory
does not recognize these custom classes, and so they can't be used in a nested fashion with
the deep copier.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message