Package io.trino.sql.planner.plan
Class SimplePlanRewriter.RewriteContext<C>
- java.lang.Object
-
- io.trino.sql.planner.plan.SimplePlanRewriter.RewriteContext<C>
-
- Enclosing class:
- SimplePlanRewriter<C>
public static class SimplePlanRewriter.RewriteContext<C> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanNodedefaultRewrite(PlanNode node)Invoke the rewrite logic recursively on children of the given node and swap it out with an identical copy with the rewritten childrenPlanNodedefaultRewrite(PlanNode node, C context)Invoke the rewrite logic recursively on children of the given node and swap it out with an identical copy with the rewritten childrenCget()PlanNoderewrite(PlanNode node)This method is meant for invoking the rewrite logic on children while processing a nodePlanNoderewrite(PlanNode node, C userContext)This method is meant for invoking the rewrite logic on children while processing a node
-
-
-
Method Detail
-
get
public C get()
-
defaultRewrite
public PlanNode defaultRewrite(PlanNode node)
Invoke the rewrite logic recursively on children of the given node and swap it out with an identical copy with the rewritten children
-
defaultRewrite
public PlanNode defaultRewrite(PlanNode node, C context)
Invoke the rewrite logic recursively on children of the given node and swap it out with an identical copy with the rewritten children
-
rewrite
public PlanNode rewrite(PlanNode node, C userContext)
This method is meant for invoking the rewrite logic on children while processing a node
-
-