public class Cast extends UnaryExpression implements scala.Product, scala.Serializable
Constructor and Description |
---|
Cast(Expression child,
TypeInformation<?> resultType) |
Modifier and Type | Method and Description |
---|---|
abstract static boolean |
canEqual(Object that) |
static boolean |
checkEquals(Expression other) |
Expression |
child() |
static scala.collection.Seq<Expression> |
children() |
static boolean |
childrenValid() |
abstract static boolean |
equals(Object that) |
static boolean |
fastEquals(TreeNode<?> other) |
Cast |
makeCopy(Object[] anyRefs)
Creates a new copy of this expression with new children.
|
static A |
postOrderTransform(scala.PartialFunction<A,A> rule) |
static void |
preOrderVisit(scala.Function1<A,scala.runtime.BoxedUnit> f) |
abstract static int |
productArity() |
abstract static Object |
productElement(int n) |
static scala.collection.Iterator<Object> |
productIterator() |
static String |
productPrefix() |
Object |
resultType() |
org.apache.calcite.rex.RexNode |
toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Convert Expression to its counterpart in Calcite, i.e.
|
String |
toString() |
static boolean |
valid() |
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 Cast(Expression child, TypeInformation<?> resultType)
public abstract static boolean canEqual(Object that)
public abstract static boolean equals(Object that)
public abstract static Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<Object> productIterator()
public static String productPrefix()
public static boolean fastEquals(TreeNode<?> other)
public static A postOrderTransform(scala.PartialFunction<A,A> rule)
public static void preOrderVisit(scala.Function1<A,scala.runtime.BoxedUnit> f)
public static boolean valid()
public static boolean childrenValid()
public static boolean checkEquals(Expression other)
public static scala.collection.Seq<Expression> children()
public Expression child()
child
in class UnaryExpression
public Object resultType()
public org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Expression
toRexNode
in class Expression
relBuilder
- (undocumented)public Cast makeCopy(Object[] anyRefs)
TreeNode
makeCopy
in class TreeNode<Expression>
anyRefs
- (undocumented)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–2018 The Apache Software Foundation. All rights reserved.