public class TextPlainComparator extends Object implements Comparator<Text>
Text
that works based on the plain version of that text,
or the best string representation that text can have using Texts.toPlain(Text)
. Once
that conversion is made, the order is essentially lexicographic order with strings.Constructor and Description |
---|
TextPlainComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Text o1,
Text o2) |
static TextPlainComparator |
getInstance()
Retrieves the available
TextPlainComparator instance from this singleton. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Text o1, Text o2)
compare
in interface Comparator<Text>
public static TextPlainComparator getInstance()
TextPlainComparator
instance from this singleton.