-
- All Known Implementing Classes:
DefaultFunctionInvoker
,FormatFunctionInvoker
,ListFunctionInvoker
,WavgFunctionInvoker
public interface FunctionInvoker
A FunctionInvoker is used by the FunctionRegistry to invoke a function method and by the AggregationInvoker to invoke an aggregation method.
The implementing class essentially translates an array of ScalarValuedFunction arguments into the proper format for a given function method.
A function method can specify its invoker using the Invoker annotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
invoke(Method m, ScalarValuedFunction[] args)
Invokes a method to return a ScalarValuedFunction, using the given arguments.
-
-
-
Method Detail
-
invoke
Object invoke(Method m, ScalarValuedFunction[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
Invokes a method to return a ScalarValuedFunction, using the given arguments.- Parameters:
m
- The method to invoke.args
- The ScalarValuedFunction arguments from the call to the FunctionRegistry.- Returns:
- The ScalarValuedFunction or Aggregation returned by invoking the method.
- Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException
-
-