K - the type of the keyV - the type of the valuepublic class KV<K,V> extends Object implements Serializable
Various PTransforms like GroupByKey and Combine.perKey(com.google.cloud.dataflow.sdk.transforms.SerializableFunction<java.lang.Iterable<V>, V>)
work on PCollections of KVs.
| Modifier and Type | Class and Description |
|---|---|
static class |
KV.OrderByKey<K extends Comparable<? super K>,V>
Orders the
KV by the key. |
static class |
KV.OrderByValue<K,V extends Comparable<? super V>>
Orders the
KV by the value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
K |
getKey()
Returns the key of this KV.
|
V |
getValue()
Returns the value of this KV.
|
int |
hashCode() |
static <K,V> KV<K,V> |
of(K key,
V value)
Returns a KV with the given key and value.
|
String |
toString() |