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 D72FA97B0 for ; Wed, 14 Mar 2012 01:09:04 +0000 (UTC) Received: (qmail 69607 invoked by uid 500); 14 Mar 2012 01:09:04 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 69438 invoked by uid 500); 14 Mar 2012 01:09:04 -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 69430 invoked by uid 500); 14 Mar 2012 01:09:04 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 69427 invoked by uid 99); 14 Mar 2012 01:09:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 01:09:04 +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; Wed, 14 Mar 2012 01:09:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id F29DF1DA04 for ; Wed, 14 Mar 2012 01:08:40 +0000 (UTC) Date: Wed, 14 Mar 2012 01:08:40 +0000 (UTC) From: "Jonathan Coveney (Updated) (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: <915711977.10411.1331687320995.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1724190234.11096.1330025569174.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (PIG-2551) Create an AlgebraicEvalFunc and AccumulatorEvalFunc abstract class which gives you the lower levels for free 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-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Coveney updated PIG-2551: ---------------------------------- Attachment: PIG-2551-3.patch Woops, thought I had gotten them all. Here you go! > Create an AlgebraicEvalFunc and AccumulatorEvalFunc abstract class which gives you the lower levels for free > ------------------------------------------------------------------------------------------------------------ > > Key: PIG-2551 > URL: https://issues.apache.org/jira/browse/PIG-2551 > Project: Pig > Issue Type: Improvement > Reporter: Jonathan Coveney > Assignee: Jonathan Coveney > Priority: Minor > Fix For: 0.11 > > Attachments: PIG-2551-0.patch, PIG-2551-1.patch, PIG-2551-2.patch, PIG-2551-3.patch > > > This is more of a win for the Algebraic interface than the Accumulator interface, but the idea is that if you implement the Algebraic interface, you should get Accumulator/EvalFunc for free, and if you implement Accumulator, you should get EvalFunc for free. The win of this is that in cases such as JRuby, you don't have to muck around doing this yourself...you have them implement the algebraic portion, and the rest comes free (that is where this came out of, but I feel like it is generally useful enough). > The next piece of work I'd like to do is making an easier to implement way to make Algebraic UDFs, but then again, my to do is huge :) Would love thoughts on this. If it doesn't make it into Pig, it's still going to come in the JRuby stuff, so I thought it'd at least be worth having it separate, tested, and available to everyone. -- 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