-1
聚合後,我試圖分裂交換是一組交易所。但在分組內部,該組的元素爲空。聚合然後分裂與阿帕奇駱駝
我使用Apache的駱駝2.17(駱駝核心,駱駝ftp和駱駝斯卡拉)
from("sftp://[email protected]/path?password=pass")
.setHeader("tag", extractTagFromFilename)
.aggregate(header("tag"), new GroupedExchangeAggregationStrategy())
.completionSize(3) // i want 3 files per group
.split(_.in)
.process{m => println("== > " + m.in[])}
.end()
//.process{m => println("")} // btw this does not compile, why ?
.log("${body}")
==>空
==>空
==> null
爲什麼組中的元素爲空?
downvote是什麼原因? – mfudi