on 10-29-2007 11:31 PM
Hi All,
Could you tell me what this function does?
result.addValue(newValue);
Regards,
XIer
addValue(new Value) is one of methods of class ResultList.
ResultList supports the methods and constants
- void addValue(String)
- void addContextChange() *
- void addSuppress() *
- void clear()
- ResultList.CC (context change) *
- ResultList.SUPPRESS (suppressed value) *
addValue is the method used in advanced function to build the queue in output of the function.
I remember that only with queue functions you can use "*" methods
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
the java function result.addValue()
if you use the function as result.addValue("");
then this will generate a balnk node.
n if you use the function as result.addValue("A");
then it will give the output as A.
Thanks
Rinku
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
result.addvalue will add value to your output array. If you look at your function one of the paramete is result..which is nothing but your output Array.
So after processing data you can add data to output using result.addValue("New value")
Hope this wull help.
Let us know if you need more details.
Nilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Xier,
Consider the below example
My input xml looks like
<Record>
<row>
<Value>1</Value>
</row>
<row>
<Value>1</Value>
</row>
<row>
<Value>1</Value>
</row>
<row>
<Value>3</Value>
</row>
<row>
<Value>5</Value>
</row>
<row>
<Value>44</Value>
</row>
<row>
<Value>55</Value>
</row>
<row>
<Value>66</Value>
</row>
Then if you want to take all the values of element <Value> ,then
u must write,
for (int j =0;j<input.length;j++)
{
<b>result.addValue(input[j]) ;</b>
}
So the above UDF will add all the Value element into single queue as below picture.
http://flickr.com/photo_zoom.gne?id=798590221&size=o
If it's not clear, reply back.
raj.
Xier,
It will add the value to the result list.
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.