on 02-06-2015 7:20 PM
People,
I have this scenario :
Note that, in source, I have an unbounded structure.
At the target, I have two 1..1 structures.
If the id field in the source structure, is with the value "1", I must map to the structure "emit". If the value is "2", I map to the "dest" structure.
I tried several ways, but the target structures are 1..1 and therefore it only maps the first occurrence of origin.
Is how to do this?
Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
People,
I got through the following udfs:
for(int i=0;i<id.length;i++){
if(id[i].equals("1")){
emitnode_out.addValue("");
nitem_out.addValue(nitem_in[i]);
nome_out.addValue(nome_in[i]);
nitem_out.addValue(ResultList.CC);
nome_out.addValue(ResultList.CC);
emitnode_out.addValue(ResultList.CC);
}
}
for(int i=0;i<id.length;i++){
if(id[i].equals("2")){
destnode_out.addValue("");
nitem_out.addValue(nitem_in[i]);
nome_out.addValue(nome_in[i]);
nitem_out.addValue(ResultList.CC);
nome_out.addValue(ResultList.CC);
destnode_out.addValue(ResultList.CC);
}
}
Thank´s
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.