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
50
51
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB
//! Compiled flow plan types for 2-phase flow compilation.
//!
//! These types represent the output of Phase 1 (compilation) before
//! catalog IDs are assigned in Phase 2 (persistence).
use ViewId;
use FlowNodeType;
/// Local node ID used during compilation (before catalog IDs are assigned).
///
/// These are simple incrementing integers starting from 0, assigned during
/// the compilation phase. They are mapped to real `FlowNodeId` values
/// during the persistence phase.
;
/// A compiled node with a local ID (not yet persisted to catalog).
/// A compiled edge connecting two nodes (using local IDs).
/// The output of Phase 1: a complete flow plan ready for persistence.
///
/// This is a pure data structure with no catalog references. It contains
/// all the information needed to persist the flow in Phase 2.