public class OrFilter extends Object implements BooleanFilter
EMPTY_VALUE_MATCHER_ARRAY| Constructor and Description |
|---|
OrFilter(LinkedHashSet<Filter> filters) |
OrFilter(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) |
BitmapColumnIndex |
getBitmapColumnIndex(ColumnIndexSelector selector)
Returns a
BitmapColumnIndex if this filter supports using a bitmap index for filtering for the given input
ColumnIndexSelector. |
LinkedHashSet<Filter> |
getFilters()
Returns the child filters for this filter.
|
int |
hashCode() |
ValueMatcher |
makeMatcher(ColumnIndexSelector 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, supportsSelectivityEstimationestimateSelectivity, rewriteRequiredColumns, supportsRequiredColumnRewritepublic OrFilter(LinkedHashSet<Filter> filters)
@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 ValueMatcher makeMatcher(ColumnIndexSelector 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 BooleanFilterCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.