Flow PHP

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

Rewrite

Methods

__construct()  : mixed
of()  : Node
The replacement for $original, given as $rebuilt over its rewritten children; $rebuilt itself when nothing changes.

Methods

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.

Parameters
$original : Node
$rebuilt : Node
Return values
Node
On this page

Search results