WithKeys

Javadoc Javadoc


接受 PCollection<V> 並產生 PCollection<KV<K, V>>,方法是將每個輸入元素與一個鍵關聯。

WithKeys 有兩個版本,具體取決於應如何決定鍵

範例