def __init__(self, child, name, attributes, schema):
        """
        Construct a RenameNode.
        :param name: The new name for the relation.
        :param attributes: A list of new names for every attribute or an empty
        list.
        :param child: The child of this Node.
        """
        super().__init__(Operator.rename, child, name)
        if schema.contains(name):
            raise RelationReferenceError(
                'Relation \'{name}\' already exists.'.format(name=name))
        self.attributes.rename(attributes, self.name)
def __init__ ( self , child , name , attributes , schema ) : super ( ) . __init__ ( Operator . rename , child , name ) if schema . contains ( name ) : raise RelationReferenceError ( 'Relation \'{name}\' already exists.' . format ( name = name ) ) self . attributes . rename ( attributes , self . name )
Construct a RenameNode.
        :param name: The new name for the relation.
        :param attributes: A list of new names for every attribute or an empty
        list.
        :param child: The child of this Node.