JoinSides implements Rewrite
Read onlyYes
FinalYes
Optimizes a join's right side as the plan it is - the outer plan's rewrites never reach into it.
Interfaces
Methods
- __construct() : mixed
- of() : Node
- The replacement for $original, given as $rebuilt over its rewritten children; $rebuilt itself when nothing changes.
Methods
__construct()
public
__construct(Optimizer $optimizer, Backend $backend) : mixed
Parameters
of()
The replacement for $original, given as $rebuilt over its rewritten children; $rebuilt itself when nothing changes.
public
of(Node $original, Node $rebuilt) : Node
Apply it to a plan through LogicalPlan::transformUp(): its memo rewrites a node every consumer shares exactly once, so the shared prefix stays shared. It never reaches into a join's right side.