Class TypeLiteralExpression
java.lang.Object
org.apache.flink.table.expressions.TypeLiteralExpression
- All Implemented Interfaces:
Expression,ResolvedExpression
@PublicEvolving
public final class TypeLiteralExpression
extends Object
implements ResolvedExpression
Expression that wraps
DataType as a literal.
Expressing a type is primarily needed for casting operations. This expression simplifies the
Expression design as it makes CallExpression the only expression that takes
subexpressions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ExpressionVisitor<R> visitor) Returns a string that fully serializes this instance.Returns a string that summarizes this expression for printing to a console.booleanReturns the data type of the computation result.inthashCode()toString()
-
Constructor Details
-
TypeLiteralExpression
-
-
Method Details
-
getOutputDataType
Description copied from interface:ResolvedExpressionReturns the data type of the computation result.- Specified by:
getOutputDataTypein interfaceResolvedExpression
-
getResolvedChildren
- Specified by:
getResolvedChildrenin interfaceResolvedExpression
-
asSummaryString
Description copied from interface:ExpressionReturns a string that summarizes this expression for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryStringin interfaceExpression- Returns:
- summary string of this expression for debugging purposes
-
asSerializableString
Description copied from interface:ResolvedExpressionReturns a string that fully serializes this instance. The serialized string can be used for storing the query in, for example, aCatalogas a view.- Specified by:
asSerializableStringin interfaceResolvedExpression- Returns:
- detailed string for persisting in a catalog
-
getChildren
- Specified by:
getChildrenin interfaceExpression
-
accept
- Specified by:
acceptin interfaceExpression
-
equals
-
hashCode
public int hashCode() -
toString
-