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_r310909197
 
 

 ##########
 File path: processing/src/main/java/org/apache/druid/query/filter/Filter.java
 ##########
 @@ -129,4 +130,19 @@ default boolean canVectorizeMatcher()
   {
     return false;
   }
+
+  /**
+   * Set of columns used by a filter
+   */
+  Set<String> getRequiredColumns();
+
+  /**
+   * Determine if a filter *should* use a bitmap index based on information 
collected from the supplied
+   * {@link BitmapIndexSelector}. This method differs from {@link 
#supportsBitmapIndex(BitmapIndexSelector)} in that
+   * the former only indicates if a bitmap index is available and {@link 
#getBitmapIndex(BitmapIndexSelector)} may be
+   * used. This method, by default, will consider a {@link FilterTuning} to 
make decisions about when to use an
+   * available index. Override this method in a {@link Filter} implementation 
when {@link FilterTuning} alone is not
+   * adequate for making this decision.
+   */
 
 Review comment:
   Oops, forgot about this, will fix this and add javadoc for 
`Filters.shouldUseIndex` and maybe link this one to that

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