@PublicEvolving public final class CallExpression extends Object implements ResolvedExpression
A call contains:
FunctionDefinition that identifies the function to be called
ObjectIdentifier that tracks the origin of a function
| Constructor and Description |
|---|
CallExpression(boolean isTemporary,
FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType) |
CallExpression(FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Deprecated.
Use
anonymous(FunctionDefinition, List, DataType) instead. |
CallExpression(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ExpressionVisitor<R> visitor) |
static CallExpression |
anonymous(FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to an anonymous function that has been declared inline
without a FunctionIdentifier. |
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() |
FunctionDefinition |
getFunctionDefinition() |
Optional<FunctionIdentifier> |
getFunctionIdentifier() |
String |
getFunctionName()
Returns a string representation of the call's function for logging or printing to a console.
|
DataType |
getOutputDataType()
Returns the data type of the computation result.
|
List<ResolvedExpression> |
getResolvedChildren() |
int |
hashCode() |
boolean |
isTemporary() |
static CallExpression |
permanent(BuiltInFunctionDefinition builtInFunctionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to a resolved built-in function. |
static CallExpression |
permanent(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
|
CallExpression |
replaceArgs(List<ResolvedExpression> args,
DataType dataType) |
static CallExpression |
temporary(FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
Creates a
CallExpression to a temporary function (potentially shadowing a Catalog function or providing a system function). |
String |
toString() |
@Internal
public CallExpression(boolean isTemporary,
@Nullable
FunctionIdentifier functionIdentifier,
FunctionDefinition functionDefinition,
List<ResolvedExpression> args,
DataType dataType)
@Deprecated public CallExpression(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
@Deprecated public CallExpression(FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
anonymous(FunctionDefinition, List, DataType) instead.public static CallExpression permanent(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
@Internal public static CallExpression permanent(BuiltInFunctionDefinition builtInFunctionDefinition, List<ResolvedExpression> args, DataType dataType)
CallExpression to a resolved built-in function. It assumes that the BuiltInFunctionDefinition instance is provided by the framework (usually the core module).public static CallExpression temporary(FunctionIdentifier functionIdentifier, FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
CallExpression to a temporary function (potentially shadowing a Catalog function or providing a system function).public static CallExpression anonymous(FunctionDefinition functionDefinition, List<ResolvedExpression> args, DataType dataType)
CallExpression to an anonymous function that has been declared inline
without a FunctionIdentifier.public boolean isTemporary()
public Optional<FunctionIdentifier> getFunctionIdentifier()
public FunctionDefinition getFunctionDefinition()
public String getFunctionName()
public CallExpression replaceArgs(List<ResolvedExpression> args, DataType dataType)
public DataType getOutputDataType()
ResolvedExpressiongetOutputDataType in interface ResolvedExpressionpublic List<ResolvedExpression> getResolvedChildren()
getResolvedChildren in interface ResolvedExpressionpublic String asSummaryString()
ExpressionasSummaryString in interface Expressionpublic String asSerializableString()
ResolvedExpressionCatalog as a
view.asSerializableString in interface ResolvedExpressionpublic List<Expression> getChildren()
getChildren in interface Expressionpublic <R> R accept(ExpressionVisitor<R> visitor)
accept in interface ExpressionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.