public JoinNode(Joinable left, Joinable right, JoinType joinType) { this.left = left; left.setOutput(this); this.right = right; right.setOutput(this); this.joinType = joinType; }
@Override public void replaceInput(PlanNode oldInput, PlanNode newInput) { if (left == oldInput) { left = (Joinable) newInput; left.setOutput(this); } if (right == oldInput) { right = (Joinable) newInput; right.setOutput(this); } }
public void setRight(Joinable right) { this.right = right; right.setOutput(this); }
public void setLeft(Joinable left) { this.left = left; left.setOutput(this); }