@WritesAttribute(attribute = "fragment.identifier",
description = "All split FlowFiles produced from the same parent FlowFile will have the same randomly generated UUID added for this attribute"),
@WritesAttribute(attribute = "fragment.index",
description = "A one-up number that indicates the ordering of the split FlowFiles that were created from a single parent FlowFile"),
@WritesAttribute(attribute = "fragment.count",
description = "The number of split FlowFiles generated from the parent FlowFile"),
1 回答
目前计数器主要是监视功能,您无法从表达式语言中真正访问它们 . 他们习惯于回答诸如“我从源xyz收到多少消息?”之类的问题 .
在您的情况下,所有“拆分”处理器应该编写一组标准的片段属性:
所以你应该可以在你的文件名中使用$ .