Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 47721 invoked from network); 13 Aug 2008 17:27:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Aug 2008 17:27:08 -0000 Received: (qmail 45260 invoked by uid 500); 13 Aug 2008 17:27:06 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 45218 invoked by uid 500); 13 Aug 2008 17:27:06 -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 45207 invoked by uid 99); 13 Aug 2008 17:27:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Aug 2008 10:27:06 -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; Wed, 13 Aug 2008 17:26:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D4D75234C193 for ; Wed, 13 Aug 2008 10:26:46 -0700 (PDT) Message-ID: <1486156618.1218648406870.JavaMail.jira@brutus> Date: Wed, 13 Aug 2008 10:26:46 -0700 (PDT) From: "Stuart Sierra (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-3944) TupleWritable listed as public class but cannot be used without methods private to the package In-Reply-To: <1899360710.1218586424309.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-3944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622286#action_12622286 ] Stuart Sierra commented on HADOOP-3944: --------------------------------------- The visibility of TupleWritable in the javadocs is confusing to new users (like me), who may be tempted to use it as a general-purpose container object in MapReduce jobs, which doesn't work. > TupleWritable listed as public class but cannot be used without methods private to the package > ---------------------------------------------------------------------------------------------- > > Key: HADOOP-3944 > URL: https://issues.apache.org/jira/browse/HADOOP-3944 > Project: Hadoop Core > Issue Type: Improvement > Components: documentation > Affects Versions: 0.17.1 > Reporter: Michael Andrews > Priority: Minor > > Reading the hadoop-core javadocs, it appears as though TupleWritable can be used outside of the > org.apache.hadoop.mapred.join.* package. A user can import TupleWritable but cannot use it correctly without the setWritten, and clearWritten methods being public. It seems as the though the intent was to make TupleWritable hidden from the user as it is dependent on CompositeRecordReader. As a possible solution, classes within a package can be made invisible to the user by omitting 'public' from the class definition. In the case of TupleWritable, this removes the javadoc link from other classes in mapred.join and it's not clear if these classes should be hidden from the user. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.