You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/01/22 20:27:21 UTC

[jira] [Resolved] (CRUNCH-328) Add support for ExtensionRegistry with PTypes.protos

     [ https://issues.apache.org/jira/browse/CRUNCH-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Wills resolved CRUNCH-328.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 0.8.3
                   0.10.0

Pushed to master and 0.8 branch.

> Add support for ExtensionRegistry with PTypes.protos
> ----------------------------------------------------
>
>                 Key: CRUNCH-328
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-328
>             Project: Crunch
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Josh Wills
>            Assignee: Josh Wills
>             Fix For: 0.10.0, 0.8.3
>
>         Attachments: CRUNCH-328.patch
>
>
> Came across a use case where it would be great to be able to have support for deserializing protobufs using an ExtensionRegistry for some custom message extensions. ExtensionRegistry isn't serializable and there isn't a good way to serialize it using the current protobuf libraries, so I also created a Serializable extension of Guava's Supplier interface to handle cases where we need to specify how to construct an object for use in a DoFn as an external argument, which seemed fairly useful.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)