Interface AggregationUtils.Merger
-
- Enclosing class:
- AggregationUtils
public static interface AggregationUtils.Merger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Objectinit(Object value, DataSchema.ColumnDataType dataType)Initializes the merger based on the column data type and first value.Objectmerge(Object agg, Object value)Merges the existing aggregate (the result ofinit(Object, ColumnDataType)) with the new value coming in (which may be an aggregate in and of itself).
-
-
-
Method Detail
-
init
@Nullable default Object init(@Nullable Object value, DataSchema.ColumnDataType dataType)
Initializes the merger based on the column data type and first value.
-
merge
@Nullable Object merge(@Nullable Object agg, @Nullable Object value)
Merges the existing aggregate (the result ofinit(Object, ColumnDataType)) with the new value coming in (which may be an aggregate in and of itself).
-
-