public class Alias extends UnaryExpression implements NamedExpression, scala.Product, scala.Serializable
Constructor and Description |
---|
Alias(Expression child,
String name) |
Modifier and Type | Method and Description |
---|---|
Expression |
child() |
Alias |
makeCopy(Object[] anyRefs)
Creates a new copy of this expression with new children.
|
String |
name() |
TypeInformation<?> |
resultType()
Returns the
TypeInformation for evaluating this expression. |
Attribute |
toAttribute() |
org.apache.calcite.rex.RexNode |
toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Convert Expression to its counterpart in Calcite, i.e.
|
String |
toString() |
children
checkEquals, childrenValid, valid, validateInput
fastEquals, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Alias(Expression child, String name)
public Expression child()
child
in class UnaryExpression
public String name()
name
in interface NamedExpression
public org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Expression
toRexNode
in class Expression
public TypeInformation<?> resultType()
Expression
TypeInformation
for evaluating this expression.
It is sometimes not available until the expression is valid.resultType
in class Expression
public Alias makeCopy(Object[] anyRefs)
TreeNode
makeCopy
in class TreeNode<Expression>
public Attribute toAttribute()
toAttribute
in interface NamedExpression
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.