public final class MultiKeyCollatingComparator extends Object implements Comparator<MultiKeyUntyped>, MetaDefItem, Serializable
Constructor and Description |
---|
MultiKeyCollatingComparator(boolean[] isDescendingValues,
boolean[] stringTypeValues)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(MultiKeyUntyped firstValues,
MultiKeyUntyped secondValues) |
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 MultiKeyCollatingComparator(boolean[] isDescendingValues, boolean[] stringTypeValues)
isDescendingValues
- - each value is true if the corresponding (same index)
entry in the multi-keys is to be sorted in descending order. The multikeys
to be compared must have the same number of values as this array.stringTypeValues
- true for each string-typed columnpublic final int compare(MultiKeyUntyped firstValues, MultiKeyUntyped secondValues)
compare
in interface Comparator<MultiKeyUntyped>