getType()

The getType() method is mandatory and indicates the type (UDSF, UDTF, or UDAF) of the UDX.

The getType() method must return one of the following strings:
"udsf"
For a user-defined scalar function (UDSF). For compatibility with other database products, the string "udf" is also accepted.
"udtf"
For a user-defined table function (UDTF).
"udaf"
For a user-defined aggregate function (UDAF). For compatibility with other database products, the string "uda" is also accepted.

Example

function getType()
    return "udsf"
end