@Deprecated // to be removed before 2.0 public Calc copy( RelTraitSet traitSet, RelNode child, RexProgram program, List<RelCollation> collationList) { Util.discard(collationList); return copy(traitSet, child, program); }
@Deprecated // to be removed before 2.0 public Calc copy( RelTraitSet traitSet, RelNode child, RexProgram program, List<RelCollation> collationList) { Util.discard(collationList); return copy(traitSet, child, program); }
@Override public final Calc copy(RelTraitSet traitSet, List<RelNode> inputs) { return copy(traitSet, sole(inputs), program); }
@Override public final Calc copy(RelTraitSet traitSet, List<RelNode> inputs) { return copy(traitSet, sole(inputs), program); }
calc.copy(calc.getTraitSet(), calc.getInput(), builder.getProgram()));
calc.copy(calc.getTraitSet(), calc.getInput(), builder.getProgram()));
public RelNode accept(RexShuttle shuttle) { List<RexNode> oldExprs = program.getExprList(); List<RexNode> exprs = shuttle.apply(oldExprs); List<RexLocalRef> oldProjects = program.getProjectList(); List<RexLocalRef> projects = shuttle.apply(oldProjects); RexLocalRef oldCondition = program.getCondition(); RexNode condition; if (oldCondition != null) { condition = shuttle.apply(oldCondition); assert condition instanceof RexLocalRef : "Invalid condition after rewrite. Expected RexLocalRef, got " + condition; } else { condition = null; } if (exprs == oldExprs && projects == oldProjects && condition == oldCondition) { return this; } return copy(traitSet, getInput(), new RexProgram(program.getInputRowType(), exprs, projects, (RexLocalRef) condition, program.getOutputRowType())); } }
public RelNode accept(RexShuttle shuttle) { List<RexNode> oldExprs = program.getExprList(); List<RexNode> exprs = shuttle.apply(oldExprs); List<RexLocalRef> oldProjects = program.getProjectList(); List<RexLocalRef> projects = shuttle.apply(oldProjects); RexLocalRef oldCondition = program.getCondition(); RexNode condition; if (oldCondition != null) { condition = shuttle.apply(oldCondition); assert condition instanceof RexLocalRef : "Invalid condition after rewrite. Expected RexLocalRef, got " + condition; } else { condition = null; } if (exprs == oldExprs && projects == oldProjects && condition == oldCondition) { return this; } return copy(traitSet, getInput(), new RexProgram(program.getInputRowType(), exprs, projects, (RexLocalRef) condition, program.getOutputRowType())); } }
== topProgram.getOutputRowType(); final Calc newCalc = topCalc.copy( topCalc.getTraitSet(), bottomCalc.getInput(),
== topProgram.getOutputRowType(); final Calc newCalc = topCalc.copy( topCalc.getTraitSet(), bottomCalc.getInput(),
calc.copy(calc.getTraitSet(), newJoinRel, topProgramBuilder.getProgram());