From 228614ddb50cb832cec42884a1160ebfd23fe4df Mon Sep 17 00:00:00 2001 From: Charles Allen Date: Fri, 7 Nov 2014 10:34:28 -0800 Subject: [PATCH] Changed TopNNumericResultBuilder imports to not use package.*, but instead pulls all in explicitly --- .../query/topn/TopNNumericResultBuilder.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/processing/src/main/java/io/druid/query/topn/TopNNumericResultBuilder.java b/processing/src/main/java/io/druid/query/topn/TopNNumericResultBuilder.java index e3d66c49955..71d5dfcbaf9 100644 --- a/processing/src/main/java/io/druid/query/topn/TopNNumericResultBuilder.java +++ b/processing/src/main/java/io/druid/query/topn/TopNNumericResultBuilder.java @@ -19,9 +19,9 @@ package io.druid.query.topn; -import com.apple.concurrent.Dispatch; import com.google.common.base.Function; -import com.google.common.collect.*; +import com.google.common.collect.Lists; +import com.google.common.collect.Maps; import io.druid.query.Result; import io.druid.query.aggregation.AggregatorFactory; import io.druid.query.aggregation.AggregatorUtil; @@ -29,8 +29,13 @@ import io.druid.query.aggregation.PostAggregator; import io.druid.query.dimension.DimensionSpec; import org.joda.time.DateTime; -import javax.annotation.Nullable; -import java.util.*; +import java.util.Arrays; +import java.util.Comparator; +import java.util.Iterator; +import java.util.List; +import java.util.Map; +import java.util.PriorityQueue; + /** * @@ -182,7 +187,7 @@ public class TopNNumericResultBuilder implements TopNResultBuilder public int compare(DimValHolder d1, DimValHolder d2) { // Values flipped compared to earlier - int retVal = metricComparator.compare(d2.getTopNMetricVal(),d1.getTopNMetricVal()); + int retVal = metricComparator.compare(d2.getTopNMetricVal(), d1.getTopNMetricVal()); if (retVal == 0) { retVal = dimNameComparator.compare(d1.getDimName(), d2.getDimName());