hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-1354) UDFs for dynamic invocation of simple Java methods
Date Tue, 06 Apr 2010 23:20:33 GMT

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

Alan Gates commented on PIG-1354:
---------------------------------

+1, looks good.

In my run of the tests it looks like the overhead of the reflection is about 3x.  That's reasonable
for quick and dirty work, and if people want better performance they can implement the method
in a dedicated Pig Latin UDF.

One question, you have it set to do int, long, float, double, and string.  Do you ever see
a need to have byte[] <-> bytearray?

> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message