public abstract class Expression extends TreeNode<Expression>
Constructor and Description |
---|
Expression() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkEquals(Expression other) |
boolean |
childrenValid() |
abstract TypeInformation<?> |
resultType()
Returns the
TypeInformation for evaluating this expression. |
org.apache.calcite.rex.RexNode |
toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Convert Expression to its counterpart in Calcite, i.e.
|
boolean |
valid()
One pass validation of the expression tree in post order.
|
ValidationResult |
validateInput()
Check input data types, inputs number or other properties specified by this expression.
|
children, fastEquals, makeCopy, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract TypeInformation<?> resultType()
TypeInformation
for evaluating this expression.
It is sometimes not available until the expression is valid.public boolean valid()
public boolean childrenValid()
public ValidationResult validateInput()
ValidationSuccess
if it pass the check,
or ValidationFailure
with supplement message explaining the error.
Note: we should only call this method until childrenValid == true
public org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
relBuilder
- (undocumented)public boolean checkEquals(Expression other)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.