public class Trim extends Expression implements scala.Product, scala.Serializable
trimString
from str
according to trimMode
.Constructor and Description |
---|
Trim(Expression trimMode,
Expression trimString,
Expression str) |
Modifier and Type | Method and Description |
---|---|
scala.collection.Seq<Expression> |
children()
List of child nodes that should be considered when doing transformations.
|
TypeInformation<?> |
resultType()
Returns the
TypeInformation for evaluating this expression. |
Expression |
str() |
org.apache.calcite.rex.RexNode |
toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Convert Expression to its counterpart in Calcite, i.e.
|
String |
toString() |
Expression |
trimMode() |
Expression |
trimString() |
ValidationResult |
validateInput()
Check input data types, inputs number or other properties specified by this expression.
|
checkEquals, childrenValid, valid
fastEquals, makeCopy, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public Trim(Expression trimMode, Expression trimString, Expression str)
public Expression trimMode()
public Expression trimString()
public Expression str()
public scala.collection.Seq<Expression> children()
TreeNode
children
in class TreeNode<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 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
public org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.tools.RelBuilder relBuilder)
Expression
toRexNode
in class Expression
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.