Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 84575 invoked from network); 29 Nov 2006 00:07:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2006 00:07:49 -0000 Received: (qmail 74620 invoked by uid 500); 29 Nov 2006 00:07:57 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 74593 invoked by uid 500); 29 Nov 2006 00:07:57 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 74583 invoked by uid 99); 29 Nov 2006 00:07:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 16:07:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 16:07:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3145F7142FD for ; Tue, 28 Nov 2006 16:07:27 -0800 (PST) Message-ID: <22058307.1164758847199.JavaMail.jira@brutus> Date: Tue, 28 Nov 2006 16:07:27 -0800 (PST) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-689) hadoop should provide a common way to wrap instances with different types into one type In-Reply-To: <2487900.1162955810892.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 [ http://issues.apache.org/jira/browse/HADOOP-689?page=all ] Doug Cutting updated HADOOP-689: -------------------------------- Status: Resolved (was: Patch Available) Fix Version/s: 0.9.0 Resolution: Fixed I just committed this. Thanks, Feng Jiang! > hadoop should provide a common way to wrap instances with different types into one type > --------------------------------------------------------------------------------------- > > Key: HADOOP-689 > URL: http://issues.apache.org/jira/browse/HADOOP-689 > Project: Hadoop > Issue Type: Improvement > Components: io > Environment: All environment > Reporter: Feng Jiang > Fix For: 0.9.0 > > Attachments: HADOOP-689.patch, HADOOP-689.patch.new > > > When two sequence files, which have same Key type but different Value types, are mapped out to reduce, multiple Value types is not allowed. In this case, we need a way to wrap instances with different types into one class type to reduce. > In current code, ObjectWritable is a sole choice. but it costs too many space, because the class declaration will be appended into output file as a string for every Key-value pair. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira