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
-
Field Summary
Fields inherited from class org.apache.druid.segment.filter.DimensionPredicateFilter
basePredicateString, dimension, extractionFn, filterTuning, predicateFactory -
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryFilter(String dimension, SearchQuerySpec query, ExtractionFn extractionFn, FilterTuning filterTuning) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()rewriteRequiredColumns(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.booleanReturns 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.toString()Methods inherited from class org.apache.druid.segment.filter.DimensionPredicateFilter
canVectorizeMatcher, getBitmapColumnIndex, getRequiredColumns, makeMatcher, makeVectorMatcherMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.druid.query.filter.Filter
makeFilterBundle
-
Constructor Details
-
SearchQueryFilter
public SearchQueryFilter(String dimension, SearchQuerySpec query, ExtractionFn extractionFn, FilterTuning filterTuning)
-
-
Method Details
-
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
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
- Overrides:
toStringin classDimensionPredicateFilter
-
equals
- Overrides:
equalsin classDimensionPredicateFilter
-
hashCode
public int hashCode()- Overrides:
hashCodein classDimensionPredicateFilter
-