Class FunctionSqlType

All Implemented Interfaces:
Serializable, Cloneable, RelDataType, RelDataTypeFamily

public class FunctionSqlType extends AbstractSqlType
Function type.

The type of lambda expression can be represented by a function type.

See Also:
  • Constructor Details

    • FunctionSqlType

      public FunctionSqlType(RelDataType parameterTypes, RelDataType returnType)
      Constructs a new function SQL type. This should only be called from a factory method.
      Parameters:
      parameterTypes - a struct type wrapping function's input parameter types.
      returnType - function's return type.
  • Method Details

    • generateTypeString

      protected void generateTypeString(StringBuilder sb, boolean withDetail)
      Description copied from class: RelDataTypeImpl
      Generates a string representation of this type.
      Specified by:
      generateTypeString in class RelDataTypeImpl
      Parameters:
      sb - StringBuilder into which to generate the string
      withDetail - when true, all detail information needed to compute a unique digest (and return from getFullTypeString) should be included;
    • getFamily

      public RelDataTypeFamily getFamily()
      Description copied from interface: RelDataType
      Gets a canonical object representing the family of this type. Two values can be compared if and only if their types are in the same family.
      Specified by:
      getFamily in interface RelDataType
      Overrides:
      getFamily in class AbstractSqlType
      Returns:
      canonical object representing type family, never null
    • getParameterTypes

      public RelDataType getParameterTypes()
      Returns the parameter types of the function.
      Returns:
      a struct wrapping function's parameter types.
    • getReturnType

      public RelDataType getReturnType()
      Returns the return type of the function.
      Returns:
      the function's return type.