Redis Streaming
首页
快速开始
  • 核心 API
  • Runtime
  • Config
  • State
  • Checkpoint
  • Watermark
  • Window
  • Source & Sink
  • Reliability
  • Registry
  • MQ
  • 架构设计
  • Exactly-Once
  • MQ 设计
  • Registry 设计
  • 部署指南
  • 性能调优
  • 故障排查
GitHub
首页
快速开始
  • 核心 API
  • Runtime
  • Config
  • State
  • Checkpoint
  • Watermark
  • Window
  • Source & Sink
  • Reliability
  • Registry
  • MQ
  • 架构设计
  • Exactly-Once
  • MQ 设计
  • Registry 设计
  • 部署指南
  • 性能调优
  • 故障排查
GitHub
  • 快速开始

    • 5分钟上手
    • Spring Boot 集成
  • 核心概念

    • 架构概述
    • 核心 API
    • 运行时环境
  • 基础设施模块

    • Config 配置中心
    • Registry 服务注册
    • MQ 消息队列
  • 流处理核心

    • State 状态管理
    • Checkpoint 检查点
    • Watermark 水位线
    • Window 窗口
  • 数据集成

    • Source & Sink
    • CDC 变更捕获
    • Aggregation 聚合
    • Table 表操作
    • Join 流连接
  • 可靠性

    • Reliability 组件
    • Metrics 监控
  • 设计文档

    • Exactly-Once 语义
    • MQ 设计
    • Registry 设计
  • 运维

    • 部署指南
    • 性能调优
    • 故障排查
    • CI/CD
  • 开发

    • 开发指南
    • 测试指南
    • 发布流程

Core Module

Module: core/

Core abstractions and API for streams, state, windowing, and checkpoints.

1. Scope

  • 基础 API:DataStream/KeyedStream/WindowedStream、状态接口、窗口与分配器、检查点协调等

2. Key Packages & Classes

  • api.stream:DataStream, KeyedStream, WindowedStream, StreamSource, StreamSink, WindowAssigner, WindowFunction, AggregateFunction, ReduceFunction, KeyedProcessFunction
  • api.state:State, ValueState, ListState, MapState, SetState, StateDescriptor
  • api.checkpoint:Checkpoint, CheckpointCoordinator
  • api.watermark:Watermark, WatermarkGenerator
  • core.utils:SystemUtils, InstanceIdGenerator

3. Minimal Sample (with runtime)

import io.github.cuihairu.redis.streaming.runtime.StreamExecutionEnvironment;

StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
env.fromElements("a", "bb", "ccc")
        .map(String::length)
        .print("core> ");

References

  • Design.md
  • Architecture.md
Edit this page
最近更新: 2026/1/1 13:26
Contributors: cuihairu
Prev
架构概述
Next
运行时环境