Specifies the Encoder for the intermediate value type.
Specifies the Encoder for the intermediate value type.
2.0.0
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
Specifies the Encoder for the final ouput value type.
Specifies the Encoder for the final ouput value type.
2.0.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.
Returns this Aggregator
as a TypedColumn that can be used in Dataset.
operations.
1.6.0
:: Experimental :: A base class for user-defined aggregations, which can be used in 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