Class CallExpression
java.lang.Object
org.apache.flink.table.expressions.CallExpression
- All Implemented Interfaces:
Expression,ResolvedExpression
Resolved and validated call expression for calling a function.
A call contains:
- an output type
- a
FunctionDefinitionthat identifies the function to be called - an optional
ObjectIdentifierthat tracks the origin of a function - whether the called function is temporary
-
Constructor Summary
ConstructorsConstructorDescriptionCallExpression(boolean isTemporary, FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ExpressionVisitor<R> visitor) static CallExpressionanonymous(FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto an anonymous function that has been declared inline without aFunctionIdentifier.Returns a string that fully serializes this instance.Returns a string that summarizes this expression for printing to a console.booleanReturns a string representation of the call's function for logging or printing to a console.Returns the data type of the computation result.inthashCode()booleanstatic CallExpressionpermanent(BuiltInFunctionDefinition builtInFunctionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a resolved built-in function.static CallExpressionpermanent(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) replaceArgs(List<ResolvedExpression> args, DataType dataType) static CallExpressiontemporary(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a temporary function (potentially shadowing aCatalogfunction or providing a system function).toString()
-
Constructor Details
-
CallExpression
@Internal public CallExpression(boolean isTemporary, @Nullable FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
-
-
Method Details
-
permanent
public static CallExpression permanent(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) -
permanent
@Internal public static CallExpression permanent(BuiltInFunctionDefinition builtInFunctionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a resolved built-in function. It assumes that theBuiltInFunctionDefinitioninstance is provided by the framework (usually the core module). -
temporary
public static CallExpression temporary(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto a temporary function (potentially shadowing aCatalogfunction or providing a system function). -
anonymous
public static CallExpression anonymous(FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType) Creates aCallExpressionto an anonymous function that has been declared inline without aFunctionIdentifier. -
isTemporary
public boolean isTemporary() -
getFunctionIdentifier
-
getFunctionDefinition
-
getFunctionName
Returns a string representation of the call's function for logging or printing to a console. -
replaceArgs
-
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
-