Class AliasedExpression (3.35.1)

public final class AliasedExpression implements Selectable

Inheritance

java.lang.Object > AliasedExpression

Implements

Selectable

Methods

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 String

The 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