lynx   »   [go: up one dir, main page]

Sum

Javadoc Javadoc


Transforms for computing the sum of the elements in a collection, or the sum of the values associated with each key in a collection of key-value pairs.

Examples

Example 1: get the sum of a PCollection of Doubles.

Example 2: calculate the sum of the Integers associated with each unique key (which is of type String).

Лучший частный хостинг