How slepik/odyplan works
OdyPlan is an archived C++/LLVM data-stream-management research engine; v3 is the README-designated maintained generation, while v1/v2 remain historical implementations. The intended workflow is to define a stream plan, translate it to physical operators and segments, then execute generated plan code over sources, transformations, and sinks. The README documents AOT/JIT compilation, JSON/NDJSON I/O, expressions, windows, joins, selection/projection, union, measuring, and print/write sinks. Edges for v3 use dashed, unverified links where implementation details are unsampled; v2 excerpts illustrate execution mechanics but are not treated as v3 evidence.
Main entry points: measure_operator.cpp Measure · read_runtime.cpp Read source · json_sink.h JSON and NDJSON · select_operator.cpp Select
Components 22
Plan modeling
- Plan builder
odyplan/v3/core/builder/src/core/builder/plan_builder.cpp - Logical plan
odyplan/v3/core/logical/src/core/logical/plan/plan.cpp
Physical execution
- Physical plan
odyplan/v3/core/physical/src/core/physical/plan/plan.cpp - Plan construction
odyplan/v3/core/physical/src/core/physical/plan/detail/plan_construction.cpp - Segment builder
odyplan/v3/core/physical/src/core/physical/segment/segment_builder.cpp - Segment runtime
odyplan/v3/core/runtime/src/core/runtime/compute_segment_runtime.cpp - Runtime types
odyplan/v3/core/runtime/src/core/runtime/types/runtime_type_registry.cpp
Stream operators
- Read source
odyplan/v3/basic/operators/src/basic/operators/source/read/runtime/read_runtime.cpp - Select
odyplan/v3/basic/operators/src/basic/operators/pipe/select/physical/select_operator.cpp - Project
odyplan/v3/basic/operators/src/basic/operators/pipe/project/physical/project_operator.cpp - Join
odyplan/v3/basic/operators/src/basic/operators/pipe/join/physical/join_operator.cpp - Join runtime
odyplan/v3/basic/operators/include/basic/operators/pipe/join/runtime/join_runtime.h - Window operators
odyplan/v3/basic/operators/src/basic/operators/pipe/window/physical/count_window_operator.cpp - Union
odyplan/v3/basic/operators/src/basic/operators/pipe/union/physical/union_operator.cpp - Measure
odyplan/v3/basic/operators/src/basic/operators/pipe/measure/physical/measure_operator.cpp - Print sink
odyplan/v3/basic/operators/src/basic/operators/sink/print/runtime/print_runtime.cpp - Write sink
odyplan/v3/basic/operators/src/basic/operators/sink/write/runtime/write_runtime.cpp
I/O and expressions
- Expressions
odyplan/v3/basic/expression/src/basic/expression/physical/expression_codegen.cpp - I/O registry
odyplan/v3/basic/io/include/basic/io/io_registry.h - JSON and NDJSON
odyplan/v3/basic/io/include/basic/io/json/json_sink.h
Other components
- Stream input
- Stream output
Connections 21
- Plan builder → Logical plan: builds
- Plan builder → Physical plan: translates
- Physical plan → Plan construction: constructs
- Plan construction → Segment builder: assembles
- Segment builder → Segment runtime: executes
- Runtime types → Segment runtime: provides types
- Stream input → Read source: supplies records
- Read source → Select: streams tuples
- Select → Project: streams tuples
- Expressions → Select: evaluates predicates
- Expressions → Project: computes fields
- Join → Join runtime: uses runtime
odyplan/v3/basic/operators/src/basic/operators/pipe/join/physical/join_operator.cpp - Window operators → Measure: streams windows
- Union → Measure: streams tuples
- Measure → Print sink: sends results
- Measure → Write sink: sends results
- I/O registry → JSON and NDJSON: registers formats
- Read source → I/O registry: selects input format
- Write sink → I/O registry: selects output format
- JSON and NDJSON → Stream input: decodes
- JSON and NDJSON → Stream output: encodes