All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable

public final class Alias extends NamedExpression
An Alias is a NamedExpression that gets renamed to something else through the Alias.

For example, in the statement 5 + 2 AS x, x is an alias which is points to ADD(5, 2). And in SELECT col AS x "col" is a named expression that gets renamed to "x" through an alias.

Note on equality: The id is respected in NamedExpression.equals(Object) for Alias because the ReferenceAttribute created by toAttribute() uses it.