Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 6FE3C74B8 for ; Thu, 11 Aug 2011 18:42:52 +0000 (UTC) Received: (qmail 16997 invoked by uid 500); 11 Aug 2011 18:42:50 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 16759 invoked by uid 500); 11 Aug 2011 18:42:49 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 16747 invoked by uid 99); 11 Aug 2011 18:42:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 18:42:49 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2011 18:42:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B33D5B8172 for ; Thu, 11 Aug 2011 18:42:27 +0000 (UTC) Date: Thu, 11 Aug 2011 18:42:27 +0000 (UTC) From: "Eli Collins (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <681177095.29477.1313088147731.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (HADOOP-3482) Think to some modification to the API 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/HADOOP-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eli Collins resolved HADOOP-3482. --------------------------------- Resolution: Won't Fix Out of date > Think to some modification to the API > ------------------------------------- > > Key: HADOOP-3482 > URL: https://issues.apache.org/jira/browse/HADOOP-3482 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Brice Arnould > Priority: Minor > > I know that it is out of question to break everything just for minor comfort improvements. > But I think that we should evaluate the cost of improving the API, and the way we might do this without too much breaks, before the API freeze of 1.0 . If we start now, it could be a gradual process that would end only with the 1.0 release. > I do not particulary focus on those modifications, but here is a samples of what questions I would like to raise. > # Text could provide a append(Text other) method > # Text could implements CharSequence > # Some Iterators could be turned into IterableIterators. > # We could consider a more consistent naming (Text could be renamed TextWritable, JobConfigurable.configure() could be turn in JobConfigurable.setConf() to match Configurable and so on) > 1. and 2. seems imediatly accessible, even if 1. would benefit of the use of a resizable container to store bytes. > 3. requires in theory only the add of a new IterableIteror class inheriting of Iterator. But making that change visible to the user would require a change in some interface like Mapper and Reducer. > 4. *Configurable:* If those Interfaces are only used in the ReflectionUtils, it would be enough to deprecate JobConfigurable and to consider it as a particular case of Configurable. Another option would be to deprecate both and to add support in newInstance for passing parameters to constructors. > *Text:* Text could be an empty class inheriting of TextWritable, in a package like org.hadoop.compat . -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira