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

Method accept

core/src/main/java/org/apache/calcite/rel/core/Project.java:185–197  ·  view source on GitHub ↗
(RexShuttle shuttle)

Source from the content-addressed store, hash-verified

183 }
184
185 @Override public RelNode accept(RexShuttle shuttle) {
186 List<RexNode> exps = shuttle.apply(this.exps);
187 if (this.exps == exps) {
188 return this;
189 }
190 final RelDataType rowType =
191 RexUtil.createStructType(
192 getInput().getCluster().getTypeFactory(),
193 exps,
194 getRowType().getFieldNames(),
195 null);
196 return copy(traitSet, getInput(), exps, rowType);
197 }
198
199 /**
200 * Returns the project expressions.

Callers

nothing calls this directly

Calls 8

createStructTypeMethod · 0.95
copyMethod · 0.95
applyMethod · 0.65
getTypeFactoryMethod · 0.65
getClusterMethod · 0.65
getInputMethod · 0.65
getFieldNamesMethod · 0.65
getRowTypeMethod · 0.65

Tested by

no test coverage detected