@Internal public final class RexNodeExpression extends Object implements ResolvedExpression
ResolvedExpression
that originated from a RexNode
.
If the RexNode
was generated from a SQL expression, the expression can be made string
serializable and print the original SQL string as a summary.
Constructor and Description |
---|
RexNodeExpression(org.apache.calcite.rex.RexNode rexNode,
DataType outputDataType,
String summaryString,
String serializableString) |
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(ExpressionVisitor<R> visitor) |
String |
asSerializableString()
Returns a string that fully serializes this instance.
|
String |
asSummaryString()
Returns a string that summarizes this expression for printing to a console.
|
boolean |
equals(Object o) |
List<Expression> |
getChildren() |
DataType |
getOutputDataType()
Returns the data type of the computation result.
|
List<ResolvedExpression> |
getResolvedChildren() |
org.apache.calcite.rex.RexNode |
getRexNode() |
int |
hashCode() |
String |
toString() |
public org.apache.calcite.rex.RexNode getRexNode()
public String asSummaryString()
Expression
asSummaryString
in interface Expression
public String asSerializableString()
ResolvedExpression
Catalog
as a
view.asSerializableString
in interface ResolvedExpression
public List<Expression> getChildren()
getChildren
in interface Expression
public <R> R accept(ExpressionVisitor<R> visitor)
accept
in interface Expression
public DataType getOutputDataType()
ResolvedExpression
getOutputDataType
in interface ResolvedExpression
public List<ResolvedExpression> getResolvedChildren()
getResolvedChildren
in interface ResolvedExpression
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.