You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2016/12/06 05:27:58 UTC

[jira] [Created] (CALCITE-1530) Create a Shuttle for visiting linq4j expressions without mutating them

Julian Hyde created CALCITE-1530:
------------------------------------

             Summary: Create a Shuttle for visiting linq4j expressions without mutating them
                 Key: CALCITE-1530
                 URL: https://issues.apache.org/jira/browse/CALCITE-1530
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


Create a shuttle for visiting linq4j expressions without mutating them. Rename the current {{Visitor}} class to {{Shuttle}}, create a new {{Visitor<R>}} interface, and a default implementation {{VisitorImpl<R>}}, and add a method {{<R> R Node.accept(Visitor<R> visitor)}}.

Note that {{accept}}'s return type is {{R}}: not necessarily a node, in fact often {{Void}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)