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

Re: Data split and remove the rest

$
0
0

Hi Praveen,

 

use below code to get substing before the opening bracket.  In UDF  select Execution type as All Values of a context.

 

public void split(String[] input, ResultList result, Container container)throws StreamTransformationException{

 

 

int beginIndex = 0;

int endIndex = 0;

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

endIndex = input[i].indexOf("(");

result.addValue(input[i].substring(beginIndex, endIndex));

}

}

 

Regards,

Santhi


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>