Interface FunctionParameter


public interface FunctionParameter
Parameter to a Function.

NOTE: We'd have called it Parameter but the overlap with Parameter was too confusing.

  • Method Summary

    Modifier and Type
    Method
    Description
    Name of the parameter.
    int
    Zero-based ordinal of this parameter within the member's parameter list.
    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

      RelDataType getType(RelDataTypeFactory typeFactory)
      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.