Package org.apache.beam.sdk.values
Class KV<K,V>
java.lang.Object
org.apache.beam.sdk.values.KV<K,V>
- Type Parameters:
K- the type of the keyV- the type of the value
- All Implemented Interfaces:
Serializable
An immutable key/value pair.
Various PTransforms like GroupByKey and Combine.perKey(org.apache.beam.sdk.transforms.SerializableFunction<java.lang.Iterable<V>, V>)
operate on PCollections of KVs.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classKV.OrderByKey<K extends Comparable<? super K>,V> AComparatorthat ordersKVsby the natural ordering of their keys.static classKV.OrderByValue<K,V extends Comparable<? super V>> AComparatorthat ordersKVsby the natural ordering of their values. -
Method Summary