(RexShuttle shuttle)
| 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 |
nothing calls this directly
no test coverage detected