Package org.apache.beam.sdk.values
Class KV.OrderByKey<K extends Comparable<? super K>,V>
java.lang.Object
org.apache.beam.sdk.values.KV.OrderByKey<K,V>
- All Implemented Interfaces:
Serializable,Comparator<KV<K,,V>> SerializableComparator<KV<K,V>>
public static class KV.OrderByKey<K extends Comparable<? super K>,V>
extends Object
implements SerializableComparator<KV<K,V>>
A
Comparator that orders KVs by the natural ordering of their keys.
A null key is less than any non-null key.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OrderByKey
public OrderByKey()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<K extends Comparable<? super K>>
-