Optimizer
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- default() : self
- optimize() : LogicalPlan
- Rewrites every join's right side as a plan of its own, then $plan with every rule, in order.
- rules() : array<int, Rule>
- with() : self
- This optimizer's rules followed by $rules, run after them in the given order.
- without() : self
- This optimizer's rules, minus the named ones - so a caller drops one rule without freezing the list and silently missing every rule added later.
Methods
__construct()
public
__construct(Rule ...$rules) : mixed
Parameters
- $rules : Rule
default()
public
static default() : self
Return values
selfoptimize()
Rewrites every join's right side as a plan of its own, then $plan with every rule, in order.
public
optimize(LogicalPlan $plan, Backend $backend) : LogicalPlan
Parameters
- $plan : LogicalPlan
- $backend : Backend
Return values
LogicalPlanrules()
public
rules() : array<int, Rule>
Return values
array<int, Rule>with()
This optimizer's rules followed by $rules, run after them in the given order.
public
with(Rule ...$rules) : self
Parameters
- $rules : Rule
Tags
Return values
selfwithout()
This optimizer's rules, minus the named ones - so a caller drops one rule without freezing the list and silently missing every rule added later.
public
without(Rule> ...$rules) : self
Parameters
- $rules : Rule>