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 Details

    • 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
    • rewrite

      public PlanNode rewrite(PlanNode node)
      This method is meant for invoking the rewrite logic on children while processing a node