Package org.apache.druid.query
Class DimensionComparisonUtils.ArrayComparator<T>
java.lang.Object
org.apache.druid.query.DimensionComparisonUtils.ArrayComparator<T>
- All Implemented Interfaces:
Comparator<Object[]>
- Direct Known Subclasses:
DimensionComparisonUtils.ArrayComparatorForUnnaturalStringComparator
- Enclosing class:
- DimensionComparisonUtils
public static class DimensionComparisonUtils.ArrayComparator<T>
extends Object
implements Comparator<Object[]>
Creates a list comparator with custom comparator for the elements. This is used to support weird usecases where the
list dimensions can have custom comparators, and cannot be handled with
TypeSignature.getNullableStrategy(). These queries can only be generated with native queries.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ArrayComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<T>
-
coerceElement
-