reduceGroupsK

inline fun <KEY, VALUE> <Error class: unknown class><KEY, VALUE>.reduceGroupsK(noinline func: (VALUE, VALUE) -> VALUE): <Error class: unknown class><<Error class: unknown class><KEY, VALUE>>

(Kotlin-specific) Reduces the elements of each group of data using the specified binary function. The given function must be commutative and associative or the result may be non-deterministic.

Note that you need to use reduceGroupsK always instead of the Java- or Scala-specific KeyValueGroupedDataset.reduceGroups to make the compiler work.