org.apache.spark.sql.expressions
Transform the output of the reduction.
Transform the output of the reduction.
1.6.0
Merge two intermediate values.
Merge two intermediate values.
1.6.0
Combine two values to produce a new value.
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.
1.6.0
A zero value for this aggregation.
A zero value for this aggregation. Should satisfy the property that any b + zero = b.
1.6.0
Returns this Aggregator
as a TypedColumn that can be used in Dataset or DataFrame
operations.
Returns this Aggregator
as a TypedColumn that can be used in Dataset or DataFrame
operations.
1.6.0
A base class for user-defined aggregations, which can be used in DataFrame and Dataset operations to take all of the elements of a group and reduce them to a single value.
For example, the following aggregator extracts an
int
from a specific class and adds them up:Based loosely on Aggregator from Algebird: https://github.com/twitter/algebird
The input type for the aggregation.
The type of the intermediate value of the reduction.
The type of the final output result.
1.6.0