udaf
Obtains a NamedUserDefinedFunction1 that wraps the given agg so that it may be used with Data Frames.
Return
a NamedUserDefinedFunction1 that can be used as an aggregating expression
Parameters
Optional. Tries to obtain name from the class of agg if not supplied. Use udafUnnamed if no name is wanted.
the given Aggregator to convert into a UDAF. Can also be created using aggregatorOf.
Optional. If true, sets the UserDefinedFunction as nondeterministic.
See also
for a named variant.
Obtains a UserDefinedFunction1 created from an Aggregator created by the given arguments so that it may be used with Data Frames.
Return
a UserDefinedFunction1 that can be used as an aggregating expression
Parameters
A zero value for this aggregation. Should satisfy the property that any b + zero = b.
Combine two values to produce a new value. For performance, the function may modify b
and return it instead of constructing new object for b.
Merge two intermediate values.
Transform the output of the reduction.
Optional. Specifies the Encoder
for the intermediate value type.
Optional. Specifies the Encoder
for the final output value type.
Optional. If true, sets the UserDefinedFunction as nondeterministic.
See also
Obtains a NamedUserDefinedFunction1 that wraps the given agg so that it may be used with Data Frames. so that it may be used with Data Frames.
Return
a UserDefinedFunction1 that can be used as an aggregating expression
Parameters
Optional. Name for the UDAF.
A zero value for this aggregation. Should satisfy the property that any b + zero = b.
Combine two values to produce a new value. For performance, the function may modify b
and return it instead of constructing new object for b.
Merge two intermediate values.
Transform the output of the reduction.
Optional. Specifies the Encoder
for the intermediate value type.
Optional. Specifies the Encoder
for the final output value type.
Optional. If true, sets the UserDefinedFunction as nondeterministic.