MCPcopy Create free account
hub / github.com/apache/calcite / shift

Method shift

core/src/main/java/org/apache/calcite/rex/RexUtil.java:1950–1955  ·  view source on GitHub ↗

Shifts every RexInputRef in an expression by offset.

(RexNode node, final int offset)

Source from the content-addressed store, hash-verified

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}.

Callers 15

fixMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95
matchMethod · 0.95
shiftMethod · 0.95
onMatchMethod · 0.95
rewriteInMethod · 0.95
matchJoinMethod · 0.95
rewriteToMarkJoinMethod · 0.95
onMatchMethod · 0.95
transformMethod · 0.95

Calls 2

acceptMethod · 0.65
visitListMethod · 0.65

Tested by

no test coverage detected