Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 58072 invoked from network); 13 May 2008 18:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 May 2008 18:50:19 -0000 Received: (qmail 99721 invoked by uid 500); 13 May 2008 18:50:18 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 99599 invoked by uid 500); 13 May 2008 18:50:18 -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 99588 invoked by uid 99); 13 May 2008 18:50:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 May 2008 11:50:18 -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; Tue, 13 May 2008 18:49:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC1F3234C114 for ; Tue, 13 May 2008 11:49:55 -0700 (PDT) Message-ID: <1224783207.1210704595703.JavaMail.jira@brutus> Date: Tue, 13 May 2008 11:49:55 -0700 (PDT) From: "Chris K Wensel (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3380) need comparators in serializer framework In-Reply-To: <1916844417.1210696315754.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-3380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596492#action_12596492 ] Chris K Wensel commented on HADOOP-3380: ---------------------------------------- > BTW, those methods should both be altered to return RawComparator, not a WritableComparator, no? I expect so. Consider a key of type Tuple (a ComparableWritable type) that holds an arbitrary list of ComparableWritable instances. If I want fine grained ability to compare/sort these keys based on a runtime configuration, I think I would be happy with providing a Configurable RawComparator class to the JobConf during job setup. Or are you suggesting best practice is to register a new TupleSerialization (that could subclass WritableSerialization and return my fancy TupleComparator). Or should I have a TupleSerialization decorator that delegates to a configurable 'base' Serialization (Text, Thrift, Writable, JSON, etc) but overrides Serialization#getComparator()? Sorry, just trying to wrap my head around the proposed changes and their implications... I still need to poke around and see the relationship with FileInput/OutputFormat classes... > need comparators in serializer framework > ---------------------------------------- > > Key: HADOOP-3380 > URL: https://issues.apache.org/jira/browse/HADOOP-3380 > Project: Hadoop Core > Issue Type: New Feature > Components: io > Reporter: Doug Cutting > > The new serialization framework permits Hadoop to incorporate different serialization systems, including Hadoop's Writable, Thrift, Java Serialization, etc. It provides a generic, extensible means (SerializationFactory) to create serializers and deserializers for arbitrary Java classes. However it does not include a generic means to create comparators for these classes. Comparators are required for MapReduce keys and many other computations. Thus we should enhance the serialization framwork to provide comparators too. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.