Skip to main content

Module pipeline_bridge

Module pipeline_bridge 

Source
Expand description

Ring 0 / Ring 1 pipeline bridge via lock-free SPSC queue.

The PipelineBridge (Ring 0 producer) sends compiled pipeline output as individual BridgeMessages through an SpscQueue. The BridgeConsumer (Ring 1) accumulates events into Arrow RecordBatch according to a BatchPolicy, emitting Ring1Actions for downstream stateful operators.

This explicit, watermark-aware handoff prevents partial-batch emissions tied to arbitrary batch boundaries (Issue #55). Watermarks flush pending rows before the watermark is forwarded, ensuring Ring 1 operators see complete event sets.

Structs§

BridgeConsumer
Ring 1 side of the pipeline bridge (consumer).
BridgeStats
Shared counters between producer and consumer.
BridgeStatsSnapshot
A point-in-time snapshot of BridgeStats.
PipelineBridge
Ring 0 side of the pipeline bridge (producer).

Enums§

BridgeMessage
A message sent from Ring 0 through the SPSC queue to Ring 1.
PipelineBridgeError
Errors from the pipeline bridge.
Ring1Action
An action for Ring 1 produced by the BridgeConsumer.

Functions§

create_pipeline_bridge
Creates a paired PipelineBridge (producer) and BridgeConsumer (consumer).