Package org.apache.calcite.schema
Interface FunctionParameter
public interface FunctionParameter
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Name of the parameter.int
Zero-based ordinal of this parameter within the member's parameter list.getType
(RelDataTypeFactory typeFactory) Returns the type of this parameter.boolean
Returns whether this parameter is optional.
-
Method Details
-
getOrdinal
int getOrdinal()Zero-based ordinal of this parameter within the member's parameter list.- Returns:
- Parameter ordinal
-
getName
String getName()Name of the parameter.- Returns:
- Parameter name
-
getType
Returns the type of this parameter.- Parameters:
typeFactory
- Type factory to be used to create the type- Returns:
- Parameter type.
-
isOptional
boolean isOptional()Returns whether this parameter is optional.If true, the value of the parameter can be supplied using the DEFAULT SQL keyword, or it can be omitted from a function called using argument assignment, or the function can be called with fewer parameters (if all parameters after it are optional too).
If a parameter is optional its default value is NULL. We may in future allow functions to specify other default values.
-