UDF structure
Tuesday, March 01, 2011
8:50 AM
General UDF structure
UDFs are represented as classes.
The actual function call is the eval method of the class.
E.g.
FooFunc(input) in Pig is represented as 
Class FooFunc { 
return-type eval(Tuple input) { 
// function body here
} 
}