@Override public boolean equals(Object obj) { if (obj instanceof AlterTableNode) { AlterTableNode other = (AlterTableNode) obj; return super.equals(other); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof AlterTablespaceNode) { AlterTablespaceNode other = (AlterTablespaceNode) obj; return super.equals(other); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof AlterTablespaceNode) { AlterTablespaceNode other = (AlterTablespaceNode) obj; return super.equals(other); } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof AlterTableNode) { AlterTableNode other = (AlterTableNode) obj; return super.equals(other); } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof DropIndexNode) { DropIndexNode other = (DropIndexNode) obj; return super.equals(other) && this.indexName.equals(other.indexName); } return false; }
@Override public boolean equals(Object object) { if (object instanceof TableSubQueryNode) { TableSubQueryNode another = (TableSubQueryNode) object; return tableName.equals(another.tableName) && subQuery.equals(another.subQuery); } return false; }
public boolean equals(Object obj) { if (obj instanceof DropDatabaseNode) { DropDatabaseNode other = (DropDatabaseNode) obj; boolean eq = super.equals(other); eq &= this.databaseName.equals(other.databaseName); eq &= ifExists == other.ifExists; return eq; } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof DropIndexNode) { DropIndexNode other = (DropIndexNode) obj; return super.equals(other) && this.indexName.equals(other.indexName); } return false; }
public boolean equals(Object obj) { if (obj instanceof CreateDatabaseNode) { CreateDatabaseNode other = (CreateDatabaseNode) obj; return super.equals(other) && this.databaseName.equals(other.databaseName) && ifNotExists == other.ifNotExists; } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof DropTableNode) { DropTableNode other = (DropTableNode) obj; return super.equals(other) && this.tableName.equals(other.tableName) && this.ifExists == other.ifExists && this.purge == other.purge; } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof DropTableNode) { DropTableNode other = (DropTableNode) obj; return super.equals(other) && this.tableName.equals(other.tableName) && this.ifExists == other.ifExists && this.purge == other.purge; } else { return false; } }
public boolean equals(Object obj) { if (obj instanceof DropDatabaseNode) { DropDatabaseNode other = (DropDatabaseNode) obj; boolean eq = super.equals(other); eq &= this.databaseName.equals(other.databaseName); eq &= ifExists == other.ifExists; return eq; } else { return false; } }
@Override public boolean equals(Object object) { if (object instanceof TableSubQueryNode) { TableSubQueryNode another = (TableSubQueryNode) object; return tableName.equals(another.tableName) && subQuery.equals(another.subQuery); } return false; }
public boolean equals(Object obj) { if (obj instanceof CreateDatabaseNode) { CreateDatabaseNode other = (CreateDatabaseNode) obj; return super.equals(other) && this.databaseName.equals(other.databaseName) && ifNotExists == other.ifNotExists; } else { return false; } }
@Override public boolean equals(Object obj) { if (obj instanceof JoinNode) { JoinNode other = (JoinNode) obj; boolean eq = this.joinSpec.equals(other.joinSpec); eq &= TUtil.checkEquals(this.targets, other.targets); return eq && leftChild.equals(other.leftChild) && rightChild.equals(other.rightChild); } else { return false; } }
@Override public boolean equals(Object o) { if (o instanceof RelationVertex) { RelationVertex other = (RelationVertex) o; return this.relationNode.equals(other.relationNode) && this.topLogicalNode.equals(other.topLogicalNode); } return false; }
@Override public boolean equals(Object o) { if (o instanceof RelationVertex) { RelationVertex other = (RelationVertex) o; return this.relationNode.equals(other.relationNode) && this.topLogicalNode.equals(other.topLogicalNode); } return false; }
@Override public boolean equals(Object obj) { if (obj instanceof JoinNode) { JoinNode other = (JoinNode) obj; boolean eq = this.joinSpec.equals(other.joinSpec); eq &= TUtil.checkEquals(this.targets, other.targets); return eq && leftChild.equals(other.leftChild) && rightChild.equals(other.rightChild); } else { return false; } }
@Override public void visit(LogicalNode node) { for (int i = 0; i < node.childNum(); i++) { if (node.getChild(i).equals(target)) { found = node; break; } else { if (found == null) { visit(node.getChild(i)); } } } } }
@Override public void visit(LogicalNode node) { for (int i = 0; i < node.childNum(); i++) { if (node.getChild(i).equals(target)) { found = node; break; } else { if (found == null) { visit(node.getChild(i)); } } } } }