From 5e19a615f124f6c690bca7e915475efcf6a9d932 Mon Sep 17 00:00:00 2001 From: Charles Allen Date: Wed, 1 Jul 2015 09:54:31 -0700 Subject: [PATCH] Add coments to DimExtractionTopNAlgorithm --- .../java/io/druid/query/topn/DimExtractionTopNAlgorithm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/src/main/java/io/druid/query/topn/DimExtractionTopNAlgorithm.java b/processing/src/main/java/io/druid/query/topn/DimExtractionTopNAlgorithm.java index cacc2815b1f..21ec6af213a 100644 --- a/processing/src/main/java/io/druid/query/topn/DimExtractionTopNAlgorithm.java +++ b/processing/src/main/java/io/druid/query/topn/DimExtractionTopNAlgorithm.java @@ -19,7 +19,6 @@ package io.druid.query.topn; import com.google.common.collect.Maps; import io.druid.query.aggregation.Aggregator; -import io.druid.query.extraction.ExtractionFn; import io.druid.segment.Capabilities; import io.druid.segment.Cursor; import io.druid.segment.DimensionSelector; @@ -28,6 +27,7 @@ import io.druid.segment.data.IndexedInts; import java.util.Map; /** + * This has to be its own strategy because the pooled topn algorithm assumes each index is unique, and cannot handle multiple index numerals referencing the same dimension value. */ public class DimExtractionTopNAlgorithm extends BaseTopNAlgorithm, TopNParams> {