Apache Beam: KvSwap
Overview
What if you have a Key-Value pair, but want to group on the values, not the keys? Should you write a custom doFn to switch the keys and values?
NO!
You should use the KvSwap transform!
When You Should Use the KvSwap Transform
When you want t...
nikhilrao.blog1 min read