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

Re: Mapping of [0..n] to [0..1]

$
0
0

HI

 

Use below UDF:

Execution Type: All Values Of Context

 

public void joinList(String[] list, ResultList result, Container container) throws StreamTransformationException{
String join = "";
for (int i = 0 ; i < list.length ; i++){
if (i!= 0)     join = join +";"+ list[i];
else     join = join + list[i];
}
result.addValue(join);
}

Use removeContext before UDF.

test12.png

 

Regards,

Praveen.


Viewing all articles
Browse latest Browse all 3458

Trending Articles