clintropolis commented on a change in pull request #7496: refactor 
druid-bloom-filter aggregators
URL: https://github.com/apache/incubator-druid/pull/7496#discussion_r276734508
 
 

 ##########
 File path: 
extensions-core/druid-bloom-filter/src/main/java/org/apache/druid/query/aggregation/bloom/DoubleBloomFilterAggregator.java
 ##########
 @@ -23,20 +23,22 @@
 import org.apache.druid.query.filter.BloomKFilter;
 import org.apache.druid.segment.BaseDoubleColumnValueSelector;
 
+import java.nio.ByteBuffer;
+
 public final class DoubleBloomFilterAggregator extends 
BaseBloomFilterAggregator<BaseDoubleColumnValueSelector>
 
 Review comment:
   I don't feel super strongly either way, but I think it is slightly fewer 
classes the way it is in this PR since just the base agg and the subclasses 
with the selector specific handling, instead of the agg, strategy factory, and 
strategy for each selector. Maybe there is another abstraction somewhere in 
between these two approaches, or maybe a way to just supply strategies to a 
common strategy factory so you don't have to do that strategy factory 
boilerplate? I'll think about this a bit more and maybe follow up in the future.

----------------------------------------------------------------
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