SplitXml 2025.10.2.19¶
捆绑包¶
org.apache.nifi | nifi-standard-nar
描述¶
将 XML 文件拆分成多个单独的 FlowFiles,其中每个都包含原始根元素的子元素或后代元素
输入要求¶
REQUIRED
支持敏感的动态属性¶
false
属性¶
属性 |
描述 |
|---|---|
拆分深度 |
Indicates the XML-nesting depth to start splitting XML fragments. A depth of 1 means split the root 's children, whereas a depth of 2 means split the root's children's children and so forth. |
关系¶
名称 |
描述 |
|---|---|
failure |
如果 FlowFile 在处理过程中失败(例如,FlowFile 不是有效的 XML),将路由到此关系 |
original |
原始的 FlowFile 会被拆分成多个片段。如果 FlowFile 处理失败,则不会向该关系发送任何内容 |
split |
原始 FlowFile 的所有分段都将路由到此关系 |
写入属性¶
名称 |
描述 |
|---|---|
fragment.identifier |
由同一个父 FlowFile 生成的所有拆分 FlowFiles 都将带有为此属性添加的随机生成的相同 UUID |
fragment.index |
表示从单个父 FlowFile 创建的拆分 FlowFiles 的顺序的递增编号 |
fragment.count |
从父 FlowFile 生成的拆分 FlowFiles 数量 |
segment.original.filename |
父 FlowFile 的文件名 |