public class Substring extends Expression implements InputTypeSpec, scala.Product, scala.Serializable
str
from begin
(inclusive) for length
.Constructor and Description |
---|
Substring(Expression str,
Expression begin) |
Substring(Expression str,
Expression begin,
Expression length) |
Modifier and Type | Method and Description |
---|---|
Expression |
begin() |
abstract static boolean |
canEqual(Object that) |
static boolean |
checkEquals(Expression other) |
scala.collection.Seq<Expression> |
children()
List of child nodes that should be considered when doing transformations.
|
static boolean |
childrenValid() |
abstract static boolean |
equals(Object that) |
scala.collection.Seq<TypeInformation<?>> |
expectedTypes()
Input type specification for each child.
|
static boolean |
fastEquals(TreeNode<?> other) |
Expression |
length() |
static A |
makeCopy(Object[] newArgs) |
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() |
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() |
static boolean |
valid() |
static ValidationResult |
validateInput() |
checkEquals, childrenValid, valid, validateInput
fastEquals, makeCopy, postOrderTransform, preOrderVisit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validateInput
public Substring(Expression str, Expression begin, Expression length)
public Substring(Expression str, Expression begin)
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 A makeCopy(Object[] newArgs)
public static boolean valid()
public static boolean childrenValid()
public static boolean checkEquals(Expression other)
public static ValidationResult validateInput()
public Expression str()
public Expression begin()
public Expression length()
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
relBuilder
- (undocumented)Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.