Package org.apache.druid.segment.filter
Class SearchQueryFilter
- java.lang.Object
-
- org.apache.druid.segment.filter.DimensionPredicateFilter
-
- org.apache.druid.segment.filter.SearchQueryFilter
-
- All Implemented Interfaces:
Filter
public class SearchQueryFilter extends DimensionPredicateFilter
-
-
Field Summary
-
Fields inherited from class org.apache.druid.segment.filter.DimensionPredicateFilter
basePredicateString, dimension, extractionFn, filterTuning, predicateFactory
-
-
Constructor Summary
Constructors Constructor Description SearchQueryFilter(String dimension, SearchQuerySpec query, ExtractionFn extractionFn, FilterTuning filterTuning)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()FilterrewriteRequiredColumns(Map<String,String> columnRewrites)Return a copy of this filter that is identical to the this filter except that it operates on different columns, based on a renaming map where the key is the column to be renamed in the filter, and the value is the new column name.booleansupportsRequiredColumnRewrite()Returns true is this filter is able to return a copy of this filter that is identical to this filter except that it operates on different columns, based on a renaming map.StringtoString()-
Methods inherited from class org.apache.druid.segment.filter.DimensionPredicateFilter
canVectorizeMatcher, getBitmapColumnIndex, getRequiredColumns, makeMatcher, makeVectorMatcher
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.filter.Filter
makeFilterBundle
-
-
-
-
Constructor Detail
-
SearchQueryFilter
public SearchQueryFilter(String dimension, SearchQuerySpec query, ExtractionFn extractionFn, FilterTuning filterTuning)
-
-
Method Detail
-
supportsRequiredColumnRewrite
public boolean supportsRequiredColumnRewrite()
Description copied from interface:FilterReturns true is this filter is able to return a copy of this filter that is identical to this filter except that it operates on different columns, based on a renaming map.
-
rewriteRequiredColumns
public Filter rewriteRequiredColumns(Map<String,String> columnRewrites)
Description copied from interface:FilterReturn a copy of this filter that is identical to the this filter except that it operates on different columns, based on a renaming map where the key is the column to be renamed in the filter, and the value is the new column name. For example, if I have a filter (A = hello), and I have a renaming map (A -> B), this should return the filter (B = hello)- Parameters:
columnRewrites- Column rewrite map- Returns:
- Copy of this filter that operates on new columns based on the rewrite map
-
toString
public String toString()
- Overrides:
toStringin classDimensionPredicateFilter
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDimensionPredicateFilter
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDimensionPredicateFilter
-
-