Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 16177 invoked from network); 12 Sep 2008 09:30:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2008 09:30:38 -0000 Received: (qmail 69171 invoked by uid 500); 12 Sep 2008 09:30:33 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 69148 invoked by uid 500); 12 Sep 2008 09:30:33 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 69136 invoked by uid 99); 12 Sep 2008 09:30:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 02:30:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Sep 2008 09:29:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 47014234C1E1 for ; Fri, 12 Sep 2008 02:29:45 -0700 (PDT) Message-ID: <620682597.1221211785289.JavaMail.jira@brutus> Date: Fri, 12 Sep 2008 02:29:45 -0700 (PDT) From: "Tom White (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3788) Add serialization for Protocol Buffers In-Reply-To: <1835532878.1216378952154.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630531#action_12630531 ] Tom White commented on HADOOP-3788: ----------------------------------- bq. But reading until EOF seems a poor way of communicating this. Perhaps we could change the deserialize API to be optionally passed a length or somesuch. +1 How about adding a method to Deserializer (an interface, sigh), which is called when the length of the serialized object is known: {noformat} T deserialize(T t, int length) throws IOException; {noformat} This still needs help from PB to work. I wonder if CodedInputStream#pushLimit() would do the trick? > Add serialization for Protocol Buffers > -------------------------------------- > > Key: HADOOP-3788 > URL: https://issues.apache.org/jira/browse/HADOOP-3788 > Project: Hadoop Core > Issue Type: Wish > Components: examples, mapred > Affects Versions: 0.19.0 > Reporter: Tom White > Assignee: Alex Loddengaard > Fix For: 0.19.0 > > Attachments: hadoop-3788-v1.patch, hadoop-3788-v2.patch, protobuf-java-2.0.1.jar > > > Protocol Buffers (http://code.google.com/p/protobuf/) are a way of encoding data in a compact binary format. This issue is to write a ProtocolBuffersSerialization to support using Protocol Buffers types in MapReduce programs, including an example program. This should probably go into contrib. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.