@Override public void preOrder(LogicalNodeVisitor visitor) { if (hasSubQuery()) { child.preOrder(visitor); } visitor.visit(this); }
public void init(ScanNode scanNode, Path[] inputPaths) { tableDesc = scanNode.tableDesc; setInSchema(scanNode.getInSchema()); setOutSchema(scanNode.getOutSchema()); this.qual = scanNode.qual; this.targets = scanNode.targets; setInputPaths(inputPaths); if (scanNode.hasAlias()) { alias = scanNode.alias; } }
public void init(JoinType joinType, LogicalNode left, LogicalNode right) { this.joinSpec.setType(joinType); setLeftChild(left); setRightChild(right); }
public boolean deepEquals(Object o) { if (o instanceof BinaryNode) { BinaryNode b = (BinaryNode) o; return equals(o) && leftChild.deepEquals(b.leftChild) && rightChild.deepEquals(b.rightChild); } return false; }
public void init(ScanNode scanNode, Path[] inputPaths) { tableDesc = scanNode.tableDesc; setInSchema(scanNode.getInSchema()); setOutSchema(scanNode.getOutSchema()); this.qual = scanNode.qual; this.targets = scanNode.targets; this.inputPaths = inputPaths; if (scanNode.hasAlias()) { alias = scanNode.alias; } }
@Override public void postOrder(LogicalNodeVisitor visitor) { visitor.visit(this); if (hasSubQuery()) { child.preOrder(visitor); } } }
@Override public void preOrder(LogicalNodeVisitor visitor) { if (hasSubQuery()) { child.preOrder(visitor); } visitor.visit(this); }
@Override public void postOrder(LogicalNodeVisitor visitor) { visitor.visit(this); if (hasSubQuery()) { child.preOrder(visitor); } } }