public class ScanResultValueTimestampComparator extends Object implements Comparator<ScanResultValue>
ScanQueryQueryToolChest.mergeResults(org.apache.druid.query.QueryRunner <ScanResultValue>). The comparator takes a scanQuery as
a parameter so that it knows the result format (list or compactedList) of Object ScanResultValue#events. It uses
this result format to perform a bunch of type casts on the object to get the timestamp then compares the timestamps.| Constructor and Description |
|---|
ScanResultValueTimestampComparator(ScanQuery scanQuery) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ScanResultValue o1,
ScanResultValue o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ScanResultValueTimestampComparator(ScanQuery scanQuery)
public int compare(ScanResultValue o1, ScanResultValue o2)
compare in interface Comparator<ScanResultValue>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.