You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/core/flow_def.mdx
+21-6Lines changed: 21 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -167,8 +167,22 @@ If the data slice has `Struct` type, you can obtain a data slice on a specific s
167
167
168
168
## Data Collector
169
169
170
-
A **data collector** can be added from a specific data scope, and it collects multiple entries of data, represented by data slices in the same or children scope.
170
+
A **data collector** can be added from a specific data scope, and it collects multiple entries of data from the same or children scope.
171
+
172
+
### Collect
173
+
171
174
Call its `collect()` method to collect a specific entry, which can have multiple fields.
175
+
Each field has a name as specified by the argument name, and a value in one of the following representations:
176
+
177
+
* A `DataSlice`.
178
+
* An enum `cocoindex.GeneratedField.UUID` indicating its value is an UUID automatically generated by the engine.
179
+
The uuid will remain stable when other collected input values are unchanged.
180
+
181
+
:::note
182
+
183
+
An automatically generated UUID field is allowed to appear at most once.
0 commit comments