Class RemoveRedundantIdentityProjections
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.RemoveRedundantIdentityProjections
-
- All Implemented Interfaces:
Rule<ProjectNode>
public class RemoveRedundantIdentityProjections extends Object implements Rule<ProjectNode>
Removes projection nodes that only perform non-renaming identity projections
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description RemoveRedundantIdentityProjections()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(ProjectNode project, Captures captures, Rule.Context context)Pattern<ProjectNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Method Detail
-
getPattern
public Pattern<ProjectNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<ProjectNode>
-
apply
public Rule.Result apply(ProjectNode project, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<ProjectNode>
-
-