Interface: PatternRule<T, U>
Defined in: packages/core/src/optimizer/rule.ts:30
Rule for the Optimizer.
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends PlanOperator | PlanOperator |
U | any |
Properties
operator
operator: ((...
args) =>T) | (...args) =>T[]
Defined in: packages/core/src/optimizer/rule.ts:34
The operator this rule starts matching at.
Methods
match()
match(
node):PatternRuleMatchResult<U>
Defined in: packages/core/src/optimizer/rule.ts:39
Matches the given plan operator against this rule.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | T | The plan operator to match. |
Returns
transform()
transform(
node,bindings):PlanOperator
Defined in: packages/core/src/optimizer/rule.ts:45
Transforms the given plan operator using the provided bindings.
Parameters
| Parameter | Type | Description |
|---|---|---|
node | T | The plan operator to transform. |
bindings | U | The bindings to use for the transformation. |