Class RexNodeExpression
- java.lang.Object
-
- org.apache.flink.table.planner.expressions.RexNodeExpression
-
- All Implemented Interfaces:
Expression
,ResolvedExpression
@Internal public final class RexNodeExpression extends Object implements ResolvedExpression
Wrapper for aResolvedExpression
that originated from aRexNode
.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 Summary
Constructors Constructor Description RexNodeExpression(org.apache.calcite.rex.RexNode rexNode, DataType outputDataType, String summaryString, String serializableString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getRexNode
public org.apache.calcite.rex.RexNode getRexNode()
-
asSummaryString
public String asSummaryString()
Description copied from interface:Expression
Returns a string that summarizes this expression for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryString
in interfaceExpression
- Returns:
- summary string of this expression for debugging purposes
-
asSerializableString
public String asSerializableString()
Description copied from interface:ResolvedExpression
Returns a string that fully serializes this instance. The serialized string can be used for storing the query in, for example, aCatalog
as a view.- Specified by:
asSerializableString
in interfaceResolvedExpression
- Returns:
- detailed string for persisting in a catalog
-
getChildren
public List<Expression> getChildren()
- Specified by:
getChildren
in interfaceExpression
-
accept
public <R> R accept(ExpressionVisitor<R> visitor)
- Specified by:
accept
in interfaceExpression
-
getOutputDataType
public DataType getOutputDataType()
Description copied from interface:ResolvedExpression
Returns the data type of the computation result.- Specified by:
getOutputDataType
in interfaceResolvedExpression
-
getResolvedChildren
public List<ResolvedExpression> getResolvedChildren()
- Specified by:
getResolvedChildren
in interfaceResolvedExpression
-
-