Shifts every RexInputRef in an expression by offset.
(RexNode node, final int offset)
| 1948 | * Shifts every {@link RexInputRef} in an expression by {@code offset}. |
| 1949 | */ |
| 1950 | public static RexNode shift(RexNode node, final int offset) { |
| 1951 | if (offset == 0) { |
| 1952 | return node; |
| 1953 | } |
| 1954 | return node.accept(new RexShiftShuttle(offset)); |
| 1955 | } |
| 1956 | |
| 1957 | /** |
| 1958 | * Shifts every {@link RexInputRef} in an expression by {@code offset}. |
no test coverage detected