Distinct
Produces a collection containing distinct elements of the input collection.
On some data sets, it might be more efficient to compute an approximate
answer using ApproximateUnique
, which also allows for determining distinct
values for each key.
Examples
See BEAM-7703 for updates.
Related transforms
- Count counts the number of elements within each aggregation.
- ApproximateUnique estimates the number of distinct elements in a collection.