Class ComparatorHashableMultiKeyCollating
java.lang.Object
com.espertech.esper.common.internal.util.ComparatorHashableMultiKeyCollating
- All Implemented Interfaces:
Serializable
,Comparator<HashableMultiKey>
public final class ComparatorHashableMultiKeyCollating
extends Object
implements Comparator<HashableMultiKey>, Serializable
A comparator on multikeys with string values and using the Collator for comparing. The multikeys must contain the same number of values.
- See Also:
-
Constructor Summary
ConstructorDescriptionComparatorHashableMultiKeyCollating
(boolean[] isDescendingValues, boolean[] stringTypeValues) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
compare
(HashableMultiKey firstValues, HashableMultiKey secondValues) 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
-
ComparatorHashableMultiKeyCollating
public ComparatorHashableMultiKeyCollating(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<HashableMultiKey>
-