public class Alias extends UnaryExpression implements NamedExpression, scala.Product, scala.Serializable
Constructor and Description |
---|
Alias(Expression child,
String name,
scala.collection.Seq<String> extraNames) |
Modifier and Type | Method and Description |
---|---|
Expression |
child() |
scala.collection.Seq<String> |
extraNames() |
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() |
ValidationResult |
validateInput()
Check input data types, inputs number or other properties specified by this expression.
|
children
checkEquals, childrenValid, valid
fastEquals, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Alias(Expression child, String name, scala.collection.Seq<String> extraNames)
public Expression child()
child
in class UnaryExpression
public String name()
name
in interface NamedExpression
public scala.collection.Seq<String> extraNames()
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
public ValidationResult validateInput()
Expression
ValidationSuccess
if it pass the check,
or ValidationFailure
with supplement message explaining the error.
Note: we should only call this method until childrenValid == true
validateInput
in class Expression
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.