Unpack Union
1 version
Unpack union
Splits a union-typed stream into separate output streams, one per variant. Only one output is active per input message.
Use this when
- Your downstream tools are variant-specific (e.g. one handler per image format).
- You want to demultiplex a union stream without writing a custom dispatcher.
- You are integrating a generic upstream producer with specialized downstream consumers.
What it does
Consumes one union-typed value per tick and emits it onto the output stream corresponding to its active variant. Input Image.BGR | Image.GRAY | Image.RGB becomes three output streams, with only one producing a message per input.
Inputs
| Type | Description |
|---|---|
$ts | ... | A union-typed stream. |
Outputs
| Type | Description |
|---|---|
$ts... | One output stream per union variant. |
Parameters
This transformation takes no parameters.
Works best with
Pack union— natural inverse.- Variant-specific downstream consumers that each handle one type.
Caveats
- Only the active variant's stream produces a message per tick — downstream consumers on inactive streams should tolerate gaps.
- Variant order in the output matches the union's declaration order.
Versions
- 0961e852defaultlatestlinuxTransformation