NamedUserDefinedFunction0

class NamedUserDefinedFunction0<R>(    val name: String,     udf: <Error class: unknown class>,     encoder: <Error class: unknown class><R>) : UserDefinedFunction0<R> , NamedUserDefinedFunction<R, NamedUserDefinedFunction0<R>>

Instance of a UDF with 0 arguments with name. This UDF can be invoked with (typed) columns in a Dataset.select or selectTyped call. Alternatively it can be registered for SQL calls using register.

See also

org.apache.spark.sql.expressions.UserDefinedFunction
org.jetbrains.kotlinx.spark.api.NamedUserDefinedFunction0

Constructors

Link copied to clipboard
fun <R> NamedUserDefinedFunction0(    name: String,     udf: <Error class: unknown class>,     encoder: <Error class: unknown class><R>)

Functions

Link copied to clipboard
abstract operator fun getValue(thisRef: Any?, property: KProperty<*>): NamedUserDefinedFunction0<R>
Link copied to clipboard
operator fun <DsType> invoke(): <Error class: unknown class><DsType, R>

Allows this UDF to be called in typed manner using columns in a Dataset.selectTyped call.

Link copied to clipboard
fun invokeUntyped(): <Error class: unknown class>

Returns an expression that invokes the UDF in untyped manner, using the given arguments.

Link copied to clipboard
abstract fun withName(name: String): NamedUserDefinedFunction0<R>

Properties

Link copied to clipboard
open val deterministic: Boolean

Returns true iff the UDF is deterministic, i.e. the UDF produces the same output given the same input.

Link copied to clipboard
abstract val encoder: <Error class: unknown class><Return>
Link copied to clipboard
open override val name: String
Link copied to clipboard
open val nullable: Boolean

Returns true when the UDF can return a nullable value.

Link copied to clipboard
abstract val udf: <Error class: unknown class>