Package org.apache.druid.frame.key
Class RowKeyComparator
- java.lang.Object
-
- org.apache.druid.frame.key.RowKeyComparator
-
- All Implemented Interfaces:
Comparator<RowKey>
public class RowKeyComparator extends Object implements Comparator<RowKey>
Comparator forRowKeyinstances. Delegates the comparing to aByteRowKeyComparator.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(RowKey key1, RowKey key2)static RowKeyComparatorcreate(List<KeyColumn> keyColumns, RowSignature rowSignature)booleanequals(Object o)inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
create
public static RowKeyComparator create(List<KeyColumn> keyColumns, RowSignature rowSignature)
-
compare
public int compare(RowKey key1, RowKey key2)
- Specified by:
comparein interfaceComparator<RowKey>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceComparator<RowKey>- Overrides:
equalsin classObject
-
-