udafUnnamed
inline fun <IN, OUT, AGG : Aggregator<IN, *, OUT>> udafUnnamed(agg: AGG, nondeterministic: Boolean = false): UserDefinedFunction1<IN, OUT>
Obtains a UserDefinedFunction1 that wraps the given agg so that it may be used with Data Frames.
Return
a UserDefinedFunction1 that can be used as an aggregating expression
Parameters
agg
the given Aggregator to convert into a UDAF. Can also be created using aggregatorOf.
nondeterministic
Optional. If true, sets the UserDefinedFunction as nondeterministic.
See also
functions.udaf
for a named variant.