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

Method accept

core/src/main/java/org/apache/calcite/rel/core/Sort.java:218–231  ·  view source on GitHub ↗
(RexShuttle shuttle)

Source from the content-addressed store, hash-verified

216 }
217
218 @Override public RelNode accept(RexShuttle shuttle) {
219 RexNode offset = shuttle.apply(this.offset);
220 RexNode fetch = shuttle.apply(this.fetch);
221 List<RexNode> originalSortExps = getSortExps();
222 List<RexNode> sortExps = shuttle.apply(originalSortExps);
223 assert sortExps == originalSortExps
224 : "Sort node does not support modification of input field expressions."
225 + " Old expressions: " + originalSortExps + ", new ones: " + sortExps;
226 if (offset == this.offset
227 && fetch == this.fetch) {
228 return this;
229 }
230 return copy(traitSet, getInput(), collation, offset, fetch);
231 }
232
233 @Override public boolean isEnforcer() {
234 return offset == null && fetch == null

Callers

nothing calls this directly

Calls 4

getSortExpsMethod · 0.95
copyMethod · 0.95
applyMethod · 0.65
getInputMethod · 0.65

Tested by

no test coverage detected