UserDefinedFunctionVararg

open class UserDefinedFunctionVararg<T, R>(    val udf: UserDefinedFunction,     val encoder: Encoder<R>) : UserDefinedFunction<R, NamedUserDefinedFunctionVararg<T, R>>

Instance of a UDF with vararg arguments of the same type. 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

Inheritors

Constructors

Link copied to clipboard
constructor(udf: UserDefinedFunction, encoder: Encoder<R>)

Properties

Link copied to clipboard

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

Link copied to clipboard
open override val encoder: Encoder<R>
Link copied to clipboard
open val nullable: Boolean

Returns true when the UDF can return a nullable value.

Link copied to clipboard
open override val udf: UserDefinedFunction

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): NamedUserDefinedFunctionVararg<T, R>

Returns named variant of this UDF.

Link copied to clipboard
operator fun <DsType> invoke(vararg params: TypedColumn<DsType, T>): TypedColumn<DsType, R>

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

Link copied to clipboard
open override fun withName(name: String): NamedUserDefinedFunctionVararg<T, R>

Returns named variant of this UDF.