I am trying to use LinkedList for loop inside process() method. I was able to compile the java code fine and using a Java Client Stage to invoke the class file.
So when i use LinkedList for loop inside process() method, its keep repeating the first Record of the LinkedList for the rest of the loop instead of getting next record.
Inside process() method, here is my code i am trying to work it out...
Code: Select all
for(int i=0; i<linkedlist.size(); i++)
{
Row outputRow = createOutputRow();
outputRow.setValueAsSQLTyped(0,linkedlist.get(i));
writeRow(outputRow);
}
Did anyone tried this in 8.5? Please let me know, i just want to know how can we pass ArrayList/LinkedList or ResultSet to Process() Method and successfully parse it.
Thanks & Regards
Koti