public class Overlay extends Expression implements InputTypeSpec, scala.Product, scala.Serializable
Constructor and Description |
---|
Overlay(Expression str,
Expression replacement,
Expression starting) |
Overlay(Expression str,
Expression replacement,
Expression starting,
Expression position) |
Modifier and Type | Method and Description |
---|---|
scala.collection.Seq<Expression> |
children()
List of child nodes that should be considered when doing transformations.
|
scala.collection.Seq<TypeInformation<?>> |
expectedTypes()
Input type specification for each child.
|
Expression |
position() |
Expression |
replacement() |
TypeInformation<?> |
resultType()
Returns the
TypeInformation for evaluating this expression. |
Expression |
starting() |
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() |
checkEquals, childrenValid, valid, validateInput
fastEquals, makeCopy, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validateInput
public Overlay(Expression str, Expression replacement, Expression starting, Expression position)
public Overlay(Expression str, Expression replacement, Expression starting)
public Expression str()
public Expression replacement()
public Expression starting()
public Expression position()
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 scala.collection.Seq<TypeInformation<?>> expectedTypes()
InputTypeSpec
For example, Power
expecting both of the children be of Double Type should use:
def expectedTypes: Seq[TypeInformation[_} = DOUBLE_TYPE_INFO :: DOUBLE_TYPE_INFO :: Nil
expectedTypes
in interface InputTypeSpec
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.