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

Re: Output multi files based on field value

$
0
0

Hi Nab,

 

I have created a UDF as below. But seems hashset does not work. I got the same output as the input, anyone could help?

Set<String> unique = new HashSet<String>(); 

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

   if( unique.add( ebeln[ i ] )) {

      ebeln_out.addValue(ebeln[ i ]);

   }

}


Viewing all articles
Browse latest Browse all 962

Trending Articles



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