Creates a copy of this RelRoot, assigning a RelNode.
(RelNode rel)
| 128 | |
| 129 | /** Creates a copy of this RelRoot, assigning a {@link RelNode}. */ |
| 130 | public RelRoot withRel(RelNode rel) { |
| 131 | if (rel == this.rel) { |
| 132 | return this; |
| 133 | } |
| 134 | return new RelRoot(rel, validatedRowType, kind, fields, collation, hints); |
| 135 | } |
| 136 | |
| 137 | /** Creates a copy, assigning a new kind. */ |
| 138 | public RelRoot withKind(SqlKind kind) { |
no outgoing calls