Gets the element with the minimum value within each aggregation.
In the following example, we create a pipeline with a
Then, we get the element with the minimum value in different ways.
Example 1: Minimum element in a PCollection
Combine.Globally() to get the minimum element from the entire
Example 2: Minimum elements for each key
Combine.PerKey() to get the minimum element for each unique key in a
PCollection of key-values.
Last updated on 2023/11/27
Have you found everything you were looking for?
Was it all useful and clear? Is there anything that you would like to change? Let us know!