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 withTypeSignature.getNullableStrategy(). These queries can only be generated with native queries.
-
-
Constructor Summary
Constructors Constructor Description ArrayComparator(Comparator<T> elementComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TcoerceElement(Object element)intcompare(Object[] lhs, Object[] rhs)-
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 Detail
-
ArrayComparator
public ArrayComparator(Comparator<T> elementComparator)
-
-