Package io.prestosql.sql.planner.plan
Class SimplePlanRewriter.RewriteContext<C>
- java.lang.Object
-
- io.prestosql.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 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 childrenPlanNode
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 childrenC
get()
PlanNode
rewrite(PlanNode node)
This method is meant for invoking the rewrite logic on children while processing a nodePlanNode
rewrite(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
-
-