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 forRowKey
instances. Delegates the comparing to aByteRowKeyComparator
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(RowKey key1, RowKey key2)
static RowKeyComparator
create(List<KeyColumn> keyColumns)
boolean
equals(Object o)
int
hashCode()
String
toString()
-
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)
-
compare
public int compare(RowKey key1, RowKey key2)
- Specified by:
compare
in interfaceComparator<RowKey>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceComparator<RowKey>
- Overrides:
equals
in classObject
-
-