Package org.apache.calcite.schema.impl
Class ReflectiveFunctionBase
java.lang.Object
org.apache.calcite.schema.impl.ReflectiveFunctionBase
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
ScalarFunctionImpl
,TableFunctionImpl
,TableMacroImpl
Implementation of a function that is based on a method.
This class mainly solves conversion of method parameter types to
List<FunctionParameter>
form.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal Method
Method that implements the function.final List<FunctionParameter>
Types of parameter for the function call. -
Constructor Summary
ModifierConstructorDescriptionprotected
ReflectiveFunctionBase
(Method method) Creates a ReflectiveFunctionBase. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a ParameterListBuilder.Returns the parameters of this function.
-
Field Details
-
method
Method that implements the function. -
parameters
Types of parameter for the function call.
-
-
Constructor Details
-
ReflectiveFunctionBase
Creates a ReflectiveFunctionBase.- Parameters:
method
- Method that is used to get type information from
-
-
Method Details
-
getParameters
Returns the parameters of this function.- Specified by:
getParameters
in interfaceFunction
- Returns:
- Parameters; never null
-
builder
Creates a ParameterListBuilder.
-