public class AndFilter extends Object implements BooleanFilter
EMPTY_VALUE_MATCHER_ARRAY| Constructor and Description |
|---|
AndFilter(LinkedHashSet<Filter> filters) |
AndFilter(List<Filter> filters) |
| 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) |
double |
estimateSelectivity(BitmapIndexSelector indexSelector)
Estimate selectivity of this filter.
|
static <T> ImmutableBitmap |
getBitmapIndex(BitmapIndexSelector selector,
BitmapResultFactory<T> bitmapResultFactory,
List<Filter> filters) |
<T> T |
getBitmapResult(BitmapIndexSelector selector,
BitmapResultFactory<T> bitmapResultFactory)
Get a (possibly wrapped) bitmap index, indicating rows that match this filter.
|
LinkedHashSet<Filter> |
getFilters()
Returns the child filters for this filter.
|
int |
hashCode() |
ValueMatcher |
makeMatcher(BitmapIndexSelector selector,
ColumnSelectorFactory columnSelectorFactory,
RowOffsetMatcherFactory rowOffsetMatcherFactory)
Get a ValueMatcher that applies this filter to row values.
|
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.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetRequiredColumns, shouldUseBitmapIndex, supportsBitmapIndex, supportsSelectivityEstimationgetBitmapIndex, rewriteRequiredColumns, supportsRequiredColumnRewritepublic AndFilter(LinkedHashSet<Filter> filters)
public static <T> ImmutableBitmap getBitmapIndex(BitmapIndexSelector selector, BitmapResultFactory<T> bitmapResultFactory, List<Filter> filters)
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 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 ValueMatcher makeMatcher(BitmapIndexSelector selector, ColumnSelectorFactory columnSelectorFactory, RowOffsetMatcherFactory rowOffsetMatcherFactory)
BooleanFiltermakeMatcher in interface BooleanFilterselector - Object used to retrieve bitmap indexescolumnSelectorFactory - Object used to select columns for making ValueMatchersrowOffsetMatcherFactory - Object used to create RowOffsetMatcherspublic LinkedHashSet<Filter> getFilters()
BooleanFiltergetFilters in interface BooleanFilterpublic 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–2021 The Apache Software Foundation. All rights reserved.