public class OrFilter extends Object implements BooleanFilter
EMPTY_VALUE_MATCHER_ARRAY| Constructor and Description |
|---|
OrFilter(List<Filter> filters) |
OrFilter(Set<Filter> filters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canVectorizeMatcher()
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.
|
<T> T |
getBitmapResult(BitmapIndexSelector selector,
BitmapResultFactory<T> bitmapResultFactory)
Get a (possibly wrapped) bitmap index, indicating rows that match this filter.
|
Set<Filter> |
getFilters() |
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 <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()
FiltercanVectorizeMatcher in interface Filterpublic 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 Set<Filter> getFilters()
getFilters 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–2020 The Apache Software Foundation. All rights reserved.