You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by Ajay Garg <aj...@yahoo-inc.com> on 2008/06/03 18:36:56 UTC

Calling non default constructor of final class in reduce phase of UDF

Hi all,
          I am working for developing UDFs for correlation and 
covariance . In these  UDF  user use DEFINE to call non default 
constructor of Main class and give it schema names . Now from this Main 
class i need to pass these schema name to Final class (in reduce phase) 
in order to produce the answer with appropriate schema name. So I am 
thinking a way to call constructor of Final class and pass this schema 
name as argument to constructor. But I am not able to call this 
constructor. So can somebody suggest me how can I call this non default 
constructor or can i solve this problem in some other way.
Thanks.

--
Ajay