on 09-07-2010 2:50 PM
Hi all,
Have a queue as shown in the figure with 3 contexts each consisting of 2 values.I want as output the 2nd value from the contexts.(That is 120,6,6).The 2nd value from contexts.
[http://i54.tinypic.com/24onm89.jpg]
Is there any way to achieve it using standard mapping functions.
Thanks
K
the link is broken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
input>removecontext>myudf-->Target (myudf --> all values of a queue)
function myudf(String a[[]], ResultList result, Container container)
{
result.addValue(a[1]);
for (int i=2;i<a.length;i++)
if (!a<i>.equals(RESULTLIST.CC))
result.addValues(a[i+1]);
i++;
}
see that the forum replace the [
Edited by: Rodrigo Alejandro Pertierra on Sep 7, 2010 12:04 PM
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.