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 class
KV.OrderByKey<K extends Comparable<? super K>,
V> AComparator
that ordersKVs
by the natural ordering of their keys.static class
KV.OrderByValue<K,
V extends Comparable<? super V>> AComparator
that ordersKVs
by the natural ordering of their values. -
Method Summary