You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Julien Le Dem (JIRA)" <ji...@apache.org> on 2011/01/17 07:31:44 UTC

[jira] Created: (PIG-1807) Pig UDFs should have life cycle methods

Pig UDFs should have life cycle methods
---------------------------------------

                 Key: PIG-1807
                 URL: https://issues.apache.org/jira/browse/PIG-1807
             Project: Pig
          Issue Type: Improvement
          Components: impl
    Affects Versions: 0.9.0
            Reporter: Julien Le Dem


A possible implementation could be:
init(UDFContext);
destroy(UDFContext);

This would enable initializing UDFs without requiring static calls in the constructor.
Static calls and singletons is one of the reasons pig can not execute different pig scripts in different threads.

Some useful information to add in the UDFContext:
 - inputSchema
 - whether the UDF is instantiated on the client side (parsing) or on a slave (runtime).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.