pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1354) UDFs for dynamic invocation of simple Java methods
Date Fri, 16 Apr 2010 18:48:26 GMT

    [ https://issues.apache.org/jira/browse/PIG-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12857932#action_12857932

Ashutosh Chauhan commented on PIG-1354:

Neat work! 

This patch facilitates to call few existing methods in jdk libs(which are thus compiled and
already available at runtime). 
Thinking aloud, what will it take to go one step further from here. That is, to take uncompiled
java code blocks and then compile them at runtime and make them available as udfs. If we can
get that, then we can allow users to write java code of there udfs inline in pig script and
then pig can compile it at runtime and do other necessary plumbing to make it work. And then,
no more need to write java code separately, compile it, jar it, register it etc. All user
code will be in one file. This will make writing udfs a lot easier. 
http://docs.codehaus.org/display/JANINO/Home and http://commons.apache.org/jci/ might be of
Thoughts ?

> UDFs for dynamic invocation of simple Java methods
> --------------------------------------------------
>                 Key: PIG-1354
>                 URL: https://issues.apache.org/jira/browse/PIG-1354
>             Project: Pig
>          Issue Type: New Feature
>    Affects Versions: 0.8.0
>            Reporter: Dmitriy V. Ryaboy
>            Assignee: Dmitriy V. Ryaboy
>             Fix For: 0.8.0
>         Attachments: PIG-1354.patch, PIG-1354.patch, PIG-1354.patch
> The need to create wrapper UDFs for simple Java functions creates unnecessary work for
Pig users, slows down the development process, and produces a lot of trivial classes. We can
use Java's reflection to allow invoking a number of methods on the fly, dynamically, by creating
a generic UDF to accomplish this.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message