Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0FD9D101F0 for ; Wed, 22 Jan 2014 02:38:21 +0000 (UTC) Received: (qmail 87343 invoked by uid 500); 22 Jan 2014 02:38:20 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 87317 invoked by uid 500); 22 Jan 2014 02:38:19 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 87308 invoked by uid 500); 22 Jan 2014 02:38:19 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 87304 invoked by uid 99); 22 Jan 2014 02:38:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jan 2014 02:38:19 +0000 Date: Wed, 22 Jan 2014 02:38:19 +0000 (UTC) From: "Josh Wills (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CRUNCH-328) Add support for ExtensionRegistry with PTypes.protos MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Wills updated CRUNCH-328: ------------------------------ Attachment: CRUNCH-328.patch Here's my cut at this. > Add support for ExtensionRegistry with PTypes.protos > ---------------------------------------------------- > > Key: CRUNCH-328 > URL: https://issues.apache.org/jira/browse/CRUNCH-328 > Project: Crunch > Issue Type: Bug > Components: Core > Reporter: Josh Wills > Assignee: Josh Wills > 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)