Pack Record
1 version
Pack record
Combines multiple individual streams into a single record object, assigning each stream to a named field.
Use this when
- A downstream component expects a structured input with specific field names.
- You want to merge outputs from several sibling components into one typed record.
- You need clarity and reusability that a tuple cannot provide.
What it does
Consumes one message from each input stream per tick and emits a record where each field is populated with the corresponding input. Inputs DetectedClass, Rectangle<Double>, UInt64 emit {class: DetectedClass, rectangle: Rectangle<Double>, counter: UInt64}.
Inputs
| Type | Description |
|---|---|
$ts... | One input stream per field of the output record. |
Outputs
| Type | Description |
|---|---|
{$ns:$ts...} | A record with named, typed fields. |
Parameters
This transformation takes no parameters. Field names come from the downstream type definition.
Works best with
Unpack record— natural inverse.Pack nameddownstream to then wrap the record as a domain type.
Caveats
- All input streams must produce a message every tick, or the pipeline back-pressures.
- Use
Pack tupleinstead when order matters but field names do not.
Versions
- 1bf26b60defaultlatestlinuxTransformation