public class DimensionPredicateFilter extends Object implements Filter
| Modifier and Type | Field and Description |
|---|---|
protected String |
basePredicateString |
protected String |
dimension |
protected ExtractionFn |
extractionFn |
protected FilterTuning |
filterTuning |
protected DruidPredicateFactory |
predicateFactory |
| Constructor and Description |
|---|
DimensionPredicateFilter(String dimension,
DruidPredicateFactory predicateFactory,
ExtractionFn extractionFn) |
DimensionPredicateFilter(String dimension,
DruidPredicateFactory predicateFactory,
ExtractionFn extractionFn,
FilterTuning filterTuning) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canVectorizeMatcher(ColumnInspector inspector)
Returns true if this filter can produce a vectorized matcher from its "makeVectorMatcher" method.
|
boolean |
equals(Object o) |
BitmapColumnIndex |
getBitmapColumnIndex(ColumnIndexSelector selector)
Returns a
BitmapColumnIndex if this filter supports using a bitmap index for filtering for the given input
ColumnIndexSelector. |
Set<String> |
getRequiredColumns()
Set of columns used by a filter.
|
int |
hashCode() |
ValueMatcher |
makeMatcher(ColumnSelectorFactory factory)
Get a ValueMatcher that applies this filter to row values.
|
VectorValueMatcher |
makeVectorMatcher(VectorColumnSelectorFactory factory)
Get a VectorValueMatcher that applies this filter to row vectors.
|
boolean |
supportsSelectivityEstimation(ColumnSelector columnSelector,
ColumnIndexSelector indexSelector)
Indicates whether this filter supports selectivity estimation.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitestimateSelectivity, rewriteRequiredColumns, supportsRequiredColumnRewriteprotected final String dimension
protected final DruidPredicateFactory predicateFactory
protected final String basePredicateString
protected final ExtractionFn extractionFn
protected final FilterTuning filterTuning
public DimensionPredicateFilter(String dimension, DruidPredicateFactory predicateFactory, ExtractionFn extractionFn)
public DimensionPredicateFilter(String dimension, DruidPredicateFactory predicateFactory, ExtractionFn extractionFn, FilterTuning filterTuning)
@Nullable public BitmapColumnIndex getBitmapColumnIndex(ColumnIndexSelector selector)
FilterBitmapColumnIndex if this filter supports using a bitmap index for filtering for the given input
ColumnIndexSelector. The BitmapColumnIndex can be used to compute into a bitmap indicating rows
that match this filter result BitmapColumnIndex.computeBitmapResult(BitmapResultFactory), or examine
details about the index prior to computing it, via BitmapColumnIndex.getIndexCapabilities().getBitmapColumnIndex in interface Filterselector - Object used to create BitmapColumnIndexpublic ValueMatcher makeMatcher(ColumnSelectorFactory factory)
FiltermakeMatcher in interface Filterfactory - Object used to create ValueMatcherspublic VectorValueMatcher makeVectorMatcher(VectorColumnSelectorFactory factory)
FiltermakeVectorMatcher in interface Filterfactory - Object used to create ValueMatcherspublic boolean canVectorizeMatcher(ColumnInspector inspector)
FiltercanVectorizeMatcher in interface Filterinspector - Supplies type information for the selectors this filter will match againstpublic Set<String> getRequiredColumns()
FiltergetRequiredColumns in interface Filterpublic boolean supportsSelectivityEstimation(ColumnSelector columnSelector, ColumnIndexSelector indexSelector)
FiltersupportsSelectivityEstimation in interface FiltercolumnSelector - Object to check the dimension has multi values.indexSelector - Object used to retrieve bitmap indexesCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.