public final class AliasedExpression implements SelectableImplements
SelectableMethods
as(String alias)
public Selectable as(String alias)Creates a new AliasedExpression that wraps this expression and associates it with the given alias.
Aliases are useful for renaming fields in the output of a stage or for giving meaningful names to calculated values.
| Parameter | |
|---|---|
| Name | Description |
alias |
StringThe alias to assign to this expression. |
| Returns | |
|---|---|
| Type | Description |
Selectable |
A new Selectable that wraps this expression and associates it with the provided alias. |
getAlias()
public String getAlias()| Returns | |
|---|---|
| Type | Description |
String |
|
getExpr()
public Expression getExpr()| Returns | |
|---|---|
| Type | Description |
Expression |
|