clintropolis commented on a change in pull request #8209: add mechanism to 
control filter optimization in historical query processing
URL: https://github.com/apache/incubator-druid/pull/8209#discussion_r311791032
 
 

 ##########
 File path: 
processing/src/main/java/org/apache/druid/query/filter/SpatialDimFilter.java
 ##########
 @@ -20,35 +20,49 @@
 package org.apache.druid.query.filter;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.annotations.VisibleForTesting;
 import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableSet;
 import com.google.common.collect.RangeSet;
-import com.google.common.collect.Sets;
 import org.apache.druid.collections.spatial.search.Bound;
 import org.apache.druid.java.util.common.StringUtils;
 import org.apache.druid.segment.filter.SpatialFilter;
 
+import javax.annotation.Nullable;
 import java.nio.ByteBuffer;
-import java.util.HashSet;
+import java.util.Objects;
+import java.util.Set;
 
 /**
  */
 public class SpatialDimFilter implements DimFilter
 {
   private final String dimension;
   private final Bound bound;
+  @Nullable
+  private final FilterTuning filterTuning;
 
 Review comment:
   I totally agree here. Doing it externally seemed difficult because I wanted 
it to be per filter, but I did heavily consider making some sort of abstract 
class on top of `DimFilter` to handle `extractionFn` and `filterTuning`, but I 
think at this point would prefer to do as a follow-up so I will open an issue 
soon about refactoring `DimFilter`, and potentially merging `Filter` and 
`DimFilter` as well since there isn't a good reason for them to be split.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to