| Constructor and Description |
|---|
ColumnComparisonFilter(List<DimensionSpec> dimensions) |
| Modifier and Type | Method and Description |
|---|---|
double |
estimateSelectivity(BitmapIndexSelector indexSelector)
Estimate selectivity of this filter.
|
<T> T |
getBitmapResult(BitmapIndexSelector selector,
BitmapResultFactory<T> bitmapResultFactory)
Get a (possibly wrapped) bitmap index, indicating rows that match this filter.
|
ValueMatcher |
makeMatcher(ColumnSelectorFactory factory)
Get a ValueMatcher that applies this filter to row values.
|
static ValueMatcher |
makeValueMatcher(ValueGetter[] valueGetters) |
static boolean |
overlap(String[] as,
String[] bs)
overlap returns true when: as and bs have one or more elements in common,
as and bs are both null, or as and bs are both empty.
|
boolean |
supportsBitmapIndex(BitmapIndexSelector selector)
Indicates whether this filter can return a bitmap index for filtering, based on
the information provided by the input BitmapIndexSelector.
|
boolean |
supportsSelectivityEstimation(ColumnSelector columnSelector,
BitmapIndexSelector indexSelector)
Indicates whether this filter supports selectivity estimation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBitmapIndexpublic ColumnComparisonFilter(List<DimensionSpec> dimensions)
public <T> T getBitmapResult(BitmapIndexSelector selector, BitmapResultFactory<T> bitmapResultFactory)
FilterFilter.supportsBitmapIndex(BitmapIndexSelector) returns true. Behavior in the case that
Filter.supportsBitmapIndex(BitmapIndexSelector) returns false is undefined.getBitmapResult in interface Filterselector - Object used to retrieve bitmap indexesFilter.estimateSelectivity(BitmapIndexSelector)public ValueMatcher makeMatcher(ColumnSelectorFactory factory)
FiltermakeMatcher in interface Filterfactory - Object used to create ValueMatcherspublic static ValueMatcher makeValueMatcher(ValueGetter[] valueGetters)
public static boolean overlap(@Nullable String[] as, @Nullable String[] bs)
public boolean supportsBitmapIndex(BitmapIndexSelector selector)
FiltersupportsBitmapIndex in interface Filterselector - Object used to retrieve bitmap indexespublic boolean supportsSelectivityEstimation(ColumnSelector columnSelector, BitmapIndexSelector indexSelector)
FiltersupportsSelectivityEstimation in interface FiltercolumnSelector - Object to check the dimension has multi values.indexSelector - Object used to retrieve bitmap indexespublic double estimateSelectivity(BitmapIndexSelector indexSelector)
FilterAutoStrategy.
To avoid significant performance degradation for calculating the exact cost,
implementation of this method targets to achieve rapid selectivity estimation
with reasonable sacrifice of the accuracy.
As a result, the estimated selectivity might be different from the exact value.estimateSelectivity in interface FilterindexSelector - Object used to retrieve bitmap indexesFilter.getBitmapIndex(BitmapIndexSelector)Copyright © 2011–2018. All rights reserved.