udf

val udf: UDFRegistration

A collection of methods for registering user-defined functions (UDF).

The following example registers a UDF in Kotlin:

sparkSession.udf.register("myUDF") { arg1: Int, arg2: String -> arg2 + arg1 }