合并数据#
¥Merging data
合并会将多个数据流组合在一起。你可以根据工作流需求使用不同的节点来实现此目的。
¥Merging brings multiple data streams together. You can achieve this using different nodes depending on your workflow requirements.
- 合并来自不同数据流或节点的数据:使用 合并 节点将来自不同来源的数据合并为一个数据。
¥Merge data from different data streams or nodes: Use the Merge node to combine data from various sources into one.
- 合并来自多个节点执行的数据:在需要合并来自同一节点多次执行或多个节点的数据的复杂场景中,请使用 代码 节点。
¥Merge data from multiple node executions: Use the Code node for complex scenarios where you need to merge data from multiple executions of a node or multiple nodes.
- 比较和合并数据:使用 比较数据集 节点比较、合并数据流,并根据比较结果输出数据。
¥Compare and merge data: Use the Compare Datasets node to compare, merge, and output data streams based on the comparison.
以下各节将详细介绍每种方法。
¥Explore each method in more detail in the sections below.
合并来自不同数据流的数据#
¥Merge data from different data streams
如果你的工作流为 splits,则需要将各个数据流合并为一个数据流。
¥If your workflow splits, you combine the separate streams back into one stream.
以下是一个 示例工作流 示例,展示了不同类型的合并:追加数据集、仅保留新项以及仅保留现有项。合并节点 文档包含每个合并操作的详细信息。
¥Here's an example workflow showing different types of merging: appending data sets, keeping only new items, and keeping only existing items. The Merge node documentation contains details on each of the merge operations.
Workflow preview placeholder.
合并来自不同节点#
¥Merge data from different nodes
你可以使用“合并”节点合并来自两个先前节点的数据,即使工作流尚未拆分为单独的数据流。如果你想从多个节点生成的数据生成单个数据集,此功能非常有用。
¥You can use the Merge node to combine data from two previous nodes, even if the workflow hasn't split into separate data streams. This can be useful if you want to generate a single dataset from the data generated by multiple nodes.
合并来自多个节点执行的数据#
¥Merge data from multiple node executions
使用代码节点合并来自多个节点执行的数据。这在某些 循环 场景中非常有用。
¥Use the Code node to merge data from multiple node executions. This is useful in some Looping scenarios.
Node executions and workflow executions
本节介绍如何合并来自多个节点执行的数据。这部分内容用于描述节点在单个工作流执行期间多次执行的情况。
¥This section describes merging data from multiple node executions. This is when a node executes multiple times during a single workflow execution.
有关如何使用循环遍历项目和等待来人为地创建多个执行,请参阅此 示例工作流。
¥Refer to this example workflow using Loop Over Items and Wait to artificially create multiple executions.
Workflow preview placeholder.
比较、合并并再次拆分#
¥Compare, merge, and split again
比较数据集 节点在合并数据流之前会对其进行比较。它最多可以输出四个不同的数据流。
¥The Compare Datasets node compares data streams before merging them. It outputs up to four different data streams.
有关示例,请参阅此 示例工作流。
¥Refer to this example workflow for an example.
Workflow preview placeholder.