Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 73126 invoked from network); 3 Mar 2008 20:20:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Mar 2008 20:20:00 -0000 Received: (qmail 17136 invoked by uid 500); 3 Mar 2008 20:19:54 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 17124 invoked by uid 500); 3 Mar 2008 20:19:54 -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 17111 invoked by uid 99); 3 Mar 2008 20:19:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2008 12:19:54 -0800 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION 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; Mon, 03 Mar 2008 20:19:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 60C36234C08F for ; Mon, 3 Mar 2008 12:18:51 -0800 (PST) Message-ID: <1974939515.1204575531395.JavaMail.jira@brutus> Date: Mon, 3 Mar 2008 12:18:51 -0800 (PST) From: "Doug Cutting (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-1230) Replace parameters with context objects in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes 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-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574724#action_12574724 ] Doug Cutting commented on HADOOP-1230: -------------------------------------- > I also changed the generic parameters to all caps although it looks ugly to my eyes. Might capitalization be a good compromise? Also I slightly prefer In/Out before Key/Value rather than after in these names, i.e., InKeyClass, InValClass, OutKeyClass & OutValClass to KeyInClass, ValInClass, KeyOutClass, & ValOutClass. > I didn't add the raw stuff yet [ ... ] That's fine. It should probably be a separate issue. > Replace parameters with context objects in Mapper, Reducer, Partitioner, InputFormat, and OutputFormat classes > -------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-1230 > URL: https://issues.apache.org/jira/browse/HADOOP-1230 > Project: Hadoop Core > Issue Type: Improvement > Components: mapred > Reporter: Owen O'Malley > Assignee: Owen O'Malley > Attachments: context-objs-2.patch, context-objs.patch > > > This is a big change, but it will future-proof our API's. To maintain backwards compatibility, I'd suggest that we move over to a new package name (org.apache.hadoop.mapreduce) and deprecate the old interfaces and package. Basically, it will replace: > package org.apache.hadoop.mapred; > public interface Mapper extends JobConfigurable, Closeable { > void map(WritableComparable key, Writable value, OutputCollector output, Reporter reporter) throws IOException; > } > with: > package org.apache.hadoop.mapreduce; > public interface Mapper extends Closable { > void map(MapContext context) throws IOException; > } > where MapContext has the methods like getKey(), getValue(), collect(Key, Value), progress(), etc. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.