Package io.substrait.expression
Class AbstractFunctionInvocation<T extends SimpleExtension.Function,I>
java.lang.Object
io.substrait.expression.AbstractFunctionInvocation<T,I>
- Type Parameters:
T- the function type (fromSimpleExtension)I- the invocation-specific type
public abstract class AbstractFunctionInvocation<T extends SimpleExtension.Function,I>
extends Object
Represents a generic function invocation, including its declaration, arguments, aggregation
phase, sort fields, output type, and invocation details.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Expression.AggregationPhaseReturns the aggregation phase for this invocation, if applicable.abstract List<FunctionArg>Returns the ordered list of function arguments.abstract TReturns the function declaration associated with this invocation.getType()Returns the type of this invocation (same asoutputType()).abstract IReturns the invocation-specific details.abstract TypeReturns the output type produced by this invocation.abstract List<Expression.SortField>sort()Returns the sort fields applied to this invocation, if any.
-
Constructor Details
-
AbstractFunctionInvocation
public AbstractFunctionInvocation()
-
-
Method Details
-
declaration
Returns the function declaration associated with this invocation.- Returns:
- the function declaration
-
arguments
Returns the ordered list of function arguments.- Returns:
- list of function arguments
-
aggregationPhase
Returns the aggregation phase for this invocation, if applicable.- Returns:
- aggregation phase or
nullif not an aggregate
-
sort
Returns the sort fields applied to this invocation, if any.- Returns:
- list of sort fields
-
outputType
Returns the output type produced by this invocation.- Returns:
- the output type
-
getType
Returns the type of this invocation (same asoutputType()).- Returns:
- the output type
-
invocation
Returns the invocation-specific details.- Returns:
- invocation details
-