Zip
Combines the latest values from multiple input streams using zip method and emits a combined result on any incoming event using the values accumulated on each connected input.
In-ports
p1 … pN <any>
— dynamic data inputs; the number of inputs is defined by Port count.
Out-ports
array Array
— combined values in port order.
object Object
— combined values keyed by port labels (or port names when labels are not set).
meta Object
— metadata for each emission: request, isFlush (always true), attributes, and per-port stat (bufferedEventsCount, bufferedSignalsCount, state, and original port name).
Overview
The Zip operator combines the values from connected inputs and emits a combined result whenever any input receives a new event. Emission starts only after all connected ports have received at least one value. Every successful emission removes the value from the port buffer.
To reset the values on any input port, send a RESET
signal to that port.
The Zip operator combines values exclusively from active ports, which are input ports with connected streams. For instance, if only one input port is activated, the Zip operator will immediately output the incoming value on that port.
Settings
Port count (portCount
)
Defines how many dynamic input ports (p1 … pN) are available.
- Required: Yes
- Default:
2