Package org.apache.parquet.filter
Class OrRecordFilter
- java.lang.Object
-
- org.apache.parquet.filter.OrRecordFilter
-
- All Implemented Interfaces:
RecordFilter
public final class OrRecordFilter extends Object implements RecordFilter
Provides ability to chain two filters together.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMatch()Works out whether the current record can pass through the filter.static UnboundRecordFilteror(UnboundRecordFilter filter1, UnboundRecordFilter filter2)Returns builder for creating an and filter.
-
-
-
Method Detail
-
or
public static final UnboundRecordFilter or(UnboundRecordFilter filter1, UnboundRecordFilter filter2)
Returns builder for creating an and filter.- Parameters:
filter1- The first filter to check.filter2- The second filter to check.- Returns:
- an or record filter
-
isMatch
public boolean isMatch()
Description copied from interface:RecordFilterWorks out whether the current record can pass through the filter.- Specified by:
isMatchin interfaceRecordFilter- Returns:
- true if the current value for the column reader matches the predicate.
-
-