Posted on Apr. 23, 2010 at 12.56 PM - Chennai, India
Debugging is always part of developer routine works. How do we do that in UDF?
We can use java object AbstractTrace and its relevant methods to display the content of the variables in the UDF.
Methods of the AbstractTrace Object
Excerpts are the example code in the UDF
... AbstractTrace at = container.getTrace(); at.addInfo( "This is an information" ); at.addWarning( "This is a warning!" ); at.addDebugMessage( "This is a debug message" ); ...
Life is beautiful! Let's make it meaningful and colorful!