Package org.apache.beam.sdk.values
Class KV.OrderByValue<K,V extends java.lang.Comparable<? super V>>
- java.lang.Object
-
- org.apache.beam.sdk.values.KV.OrderByValue<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<KV<K,V>>
,SerializableComparator<KV<K,V>>
public static class KV.OrderByValue<K,V extends java.lang.Comparable<? super V>> extends java.lang.Object implements SerializableComparator<KV<K,V>>
AComparator
that ordersKVs
by the natural ordering of their values.A
null
value is less than any non-null
value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderByValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(KV<K,V> a, KV<K,V> b)
-