1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Stream processing pipeline module
//!
//! This module provides a flexible, composable API for building and executing stream
//! processing pipelines with support for:
//! - Fluent pipeline builder API
//! - Stream operators (map, filter, flatmap, key_by, window, aggregate)
//! - Event ingestion and processing
//! - Watermark propagation
//! - Window assignment and triggering
//! - State management
//! - Result emission
//!
//! # Example
//!
//! ```rust,no_run
//! use processor::pipeline::{StreamPipelineBuilder, StreamOperator};
//! use processor::config::{WindowConfig, StateBackend};
//! use std::time::Duration;
//!
//! # async fn example() -> anyhow::Result<()> {
//! // Build a stream processing pipeline
//! let pipeline = StreamPipelineBuilder::new()
//! .with_name("latency-aggregator")
//! .with_parallelism(4)
//! .with_window(WindowConfig::tumbling(60_000))
//! .with_watermark_delay(Duration::from_secs(5))
//! .with_state_backend(StateBackend::Memory)
//! .build()?;
//!
//! // Create an executor and run the pipeline
//! // let executor = pipeline.create_executor();
//! // executor.run().await?;
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;