Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

need udf based on the delimiter "."

$
0
0

Hi Experts,

 

               i need a UDF for splitting of a string based on the delimiter "." i have done with the following udf but it is not working with my delimiter. it is working with the ";" delimiter.

 

for (int i = 0; i < field1.length; i++)

{

          String tokens[] = field1[i].split(".");

         field1_out.addValue(tokens[0]);

         field2_out.addValue(tokens[1]);

         field3_out.addValue(tokens[2]);

 

sample input --Action.20150302.0101 so here i need to split it in to 3 strings so that i will do some validations on the timestamp.

 

please help me guys

 

 

 

Thanks

Giridhar


Viewing all articles
Browse latest Browse all 6719

Trending Articles