Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-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 1093A9DA8 for ; Tue, 1 May 2012 01:47:14 +0000 (UTC) Received: (qmail 8598 invoked by uid 500); 1 May 2012 01:47:13 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 8557 invoked by uid 500); 1 May 2012 01:47:13 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 8549 invoked by uid 500); 1 May 2012 01:47:13 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 8546 invoked by uid 99); 1 May 2012 01:47:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 01:47:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Tue, 01 May 2012 01:47:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6FCF94280B6 for ; Tue, 1 May 2012 01:46:52 +0000 (UTC) Date: Tue, 1 May 2012 01:46:52 +0000 (UTC) From: "Bill Graham (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <97626849.12161.1335836812459.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <782562457.8309.1335249103501.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (PIG-2663) Expose helpful ScriptState methods MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-2663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265597#comment-13265597 ] Bill Graham commented on PIG-2663: ---------------------------------- @Julien I looked some more into moving those methods to MapReduceOper and getAlias is pretty straightforward but getPigFeature poses more issues. Currently MapReduceOper has a private OPER_FEATURE enum that it sets internally and uses to answer a dozen or so isFoo methods (i.e. isSampler isGroupBy). ScriptState.getPigFeature calls those MapReduceOper.isFoo methods to then map to a package-private PIG_FEATURE enum. If we moved getPigFeature into MapReduceOper we'd probably want to move PIG_FEATURE with it and we'd need to make it public. We'd then have a private OPER_FEATURE and a *public* PIG_FEATURE in the same class, along with a getPigFeature method and a bunch of isFoo methods. I worry we'd make the MapReduceOper API and it's implementation more confusing, without a significant refactoring. (Or a counter-argument could be made that it's simplifying because we won't have feature logic in two class in two packages. Once class gets more confusing, but logic gets centralized.) Thoughts? > Expose helpful ScriptState methods > ---------------------------------- > > Key: PIG-2663 > URL: https://issues.apache.org/jira/browse/PIG-2663 > Project: Pig > Issue Type: Improvement > Reporter: Bill Graham > Assignee: Bill Graham > Attachments: PIG-2663.1.patch > > > The {{ScriptState.getAlias(MapReduceOper mro)}} and {{ScriptState.getFeature(MapReduceOper mro)}} methods are useful in implementations of {{PigProgressNotificationListener}}. I'd like to make them public. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira