public interface Comparison<T>
Comparator
implementations when required internally.
In the case of Hadoop, Serialization
implementations that present
alternative serialization implementations for custom types manged by Tuple
s should also
implement the getComparator(Class)
method.
During runtime Cascading can identify and use the correct Comparator during grouping operations if it was
not given explicitly on the Fields.setComparator(Comparable, java.util.Comparator)
family of methods.
See the class BytesSerialization
for an example.
see cascading.tuple.hadoop.BytesSerializationModifier and Type | Method and Description |
---|---|
Comparator<T> |
getComparator(Class<T> type) |
Comparator<T> getComparator(Class<T> type)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.