我正在使用 Talend tJavaFlex 组件,其中有开始代码(开始运行一次)、主代码(每行运行一次)、结束代码(最后运行一次)。
**In the start code(create an empty list):**
java.util.List sharedList=new java.util.ArrayList<>();
**In the main code(create HashMap for each row and add to list):**
Consider each row has fields: startId, endID, time, flag.
sharedList.add(new java.util.HashMap<String, String>("startId",row1.startId));
<I am not sure how to handle this part>
**In end code(expose the list to other components)**
System.out.print(sharedList.size());
您能否建议如何为每一行创建 HashMap 并添加到列表中。
函数式编程
慕村9548890
慕妹3242003
随时随地看视频慕课网APP
相关分类