mirror of https://github.com/apache/druid.git
TimestampAggregator: Avoid cross-classloader access of package-private field. (#4788)
* TimestampAggregator: Avoid cross-classloader access of package-private field. * Simplify. * Remove unused import.
This commit is contained in:
parent
2ce8123bdb
commit
eb6791a60c
|
@ -26,7 +26,7 @@ import java.util.Comparator;
|
||||||
|
|
||||||
public class TimestampAggregator implements Aggregator
|
public class TimestampAggregator implements Aggregator
|
||||||
{
|
{
|
||||||
static final Comparator COMPARATOR = LongMaxAggregator.COMPARATOR;
|
static final Comparator COMPARATOR = Comparator.comparingLong(n -> ((Number) n).longValue());
|
||||||
|
|
||||||
static Object combineValues(Comparator<Long> comparator, Object lhs, Object rhs)
|
static Object combineValues(Comparator<Long> comparator, Object lhs, Object rhs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue