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
//! Real-time streaming analytics and data processing.
//!
//! This module provides building blocks for constructing streaming analytics
//! pipelines directly on data read from I/O sources:
//!
//! - **aggregators**: Incremental, numerically-stable streaming aggregators
//! (count, sum, mean/variance, min/max, histogram, top-K).
//! - **windows**: Tumbling, sliding, and session window processors for
//! partitioning a time-ordered event stream into bounded batches.
//! - **joins**: Hash join and interval join for merging two concurrent streams.
//! - **watermarks**: Event-time progress tracking for out-of-order streams.
//!
//! # Example
//!
//! ```rust
//! use scirs2_io::analytics::{TumblingWindow, MeanAgg, StreamAggregator};
//! use scirs2_io::analytics::windows::Record;
//!
//! let mut window = TumblingWindow::new(5.0);
//! let mut agg = MeanAgg::new();
//!
//! for i in 0u64..6 {
//! let record = Record::new(i as f64, i as f64);
//! if let Some(completed) = window.add(record) {
//! for r in &completed {
//! agg.update(r.value);
//! }
//! }
//! }
//! ```
pub use ;
pub use ;
pub use ;
pub use ;