Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

udf help

$
0
0

Hi ,

 

I am checking one input as (00) than okay otherwise through exception using below UDF

 

public String check code (String var1, Container container) throw StreamTransformationException{

 

if (var1 != 00)

{

 

throw new RuntimeException("mapping fail");

 

}

 

else

 

{

 


return var1;

 

}

 

}

 

 

 

Regards


Viewing all articles
Browse latest Browse all 8950

Trending Articles