cancel
Showing results for 
Search instead for 
Did you mean: 

UDF

Former Member
0 Kudos

Hi,

Can any body please tell me, what are the mandatory functions need to be used for java based UDF[<u>Init();Execute();Destroy();Run()]</u> and which packages are defaultly imported in UDF(<u>java.lang;java;io;java.reflect</u>).

thx in advance.

Accepted Solutions (0)

Answers (4)

Answers (4)

prabhu_s2
Active Contributor
0 Kudos

for any simple UDF there is no requiement of using any mandatory functions. But yes when you go for an lukup or any adv UDF u need to have the packages imported.

Former Member
0 Kudos

there are no mandatory functions for UDF. But you need to implement the two mandatory methods for Java Mappings (setParameter(), execute()) if this is what you are looking for.

But for the UDF there are no mandatory functions and you'll have java.lang, java.io, java.reflect packages imported by default.

--Archana

agasthuri_doss
Active Contributor
0 Kudos

Hi,

Shall i know what are the arguments for the methos execute you are looking for

This will help you

http://java.sun.com/j2se/1.5.0/docs/api/

Regards

Agasthuri Doss

Former Member
0 Kudos

Hi Kobby,

The following packages are imported by default

java.lang.*

java.util.*

java.io.*

java.lang.reflect.*

Wht do u mean by mandatory functions. Thr r no such mandatoru func to be used in a UDF. The UDF is a normal function which contains a java code.

Regards,

Akshay