Expand description
Operator tree IR for the planner.
Every concrete logical operator is represented in one OperatorTree
enum so the optimizer can traverse and rewrite the tree with exhaustive
pattern matching.
The enum is additive over the existing trait-object operators:
the engine still composes operators through Arc<dyn Operator> at
runtime, but the planner pre-rewrites an OperatorTree before
handing it to the executor.
Structs§
- Edge
PatternIR - Graph
PatternIR - Multi
Stage Entry - A single entry in an
OperatorTree::MultiStagecascade, pairing a child with either a fixed top-k or fractional cutoff. - Progressive
Fusion Entry - One stage of a
OperatorTree::ProgressiveFusion. - Temporal
FilterIR - Tree-local view of a temporal filter. The filter accepts
either an exact timestamp or a
[low, high]time range; both can be present simultaneously. - Text
TopK Plan - Physical score-limit pushed into a text leaf.
- Vertex
PatternIR - Single vertex pattern (variable name + accumulated constraints).
Enums§
- Deep
Fusion Aggregation - Neighborhood reduction used by a graph-aware deep-fusion propagation layer. This lives in the algebra crate so the IR does not depend on the ML runtime crate.
- Deep
Fusion Layer - Layer in a
OperatorTree::DeepFusionpipeline. - Deep
Fusion Pool Method - Element-wise reduction used by a graph-aware deep-fusion pooling layer.
- External
Prior Mode - External document prior used by
OperatorTree::BayesianMatchWithPrior. - Gating
Spec - Multi
Stage Cutoff - Candidate cutoff for one stage of a multi-stage cascade.
- Operator
Tree - Concrete logical operator tree used by planning and rewrite passes.
- Prob
Bool Mode - Text
Scoring Mode - Text scoring algorithm used by
OperatorTree::Term. - Text
TopK Strategy - Exact physical top-k algorithm selected for a text-retrieval leaf.
Traits§
Type Aliases§
- Attention
Ref - Reference to an attention fusion model.
- Edge
Constraint - Function pointer for an edge constraint (used by pattern match).
- Learned
Fusion Ref - Reference to a learned fusion model.
- Path
Weight Predicate - Predicate over the accumulated numeric weight of a matching regular path.
- Scorer
Ref - Reference to a scorer used by a
Scorenode. The optimizer only inspects the field/query-terms of the score node; the scorer is passed through opaquely. - Vertex
Constraint - Function pointer for a vertex constraint (used by pattern match).
- Vertex
Predicate - Function pointer for a vertex predicate (used by graph traverse).