Class ComparatorObjectArrayCollating
java.lang.Object
com.espertech.esper.common.internal.util.ComparatorObjectArrayCollating
- All Implemented Interfaces:
Comparator<Object[]>
A comparator on multikeys with string values and using the Collator for comparing. The multikeys must contain the same number of values.
-
Constructor Summary
ConstructorDescriptionComparatorObjectArrayCollating
(boolean[] isDescendingValues, boolean[] stringTypeValues) Ctor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ComparatorObjectArrayCollating
public ComparatorObjectArrayCollating(boolean[] isDescendingValues, boolean[] stringTypeValues) Ctor.- Parameters:
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 column
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Object[]>
-