Package org.apache.parquet.filter
Class AndRecordFilter
java.lang.Object
org.apache.parquet.filter.AndRecordFilter
- All Implemented Interfaces:
RecordFilter
Provides ability to chain two filters together. Bear in mind that the first one will
short circuit the second. Useful if getting a page of already filtered result.
i.e and( column("manufacturer", equalTo("Volkswagen")), page(100,50))
-
Method Summary
Modifier and TypeMethodDescriptionstatic final UnboundRecordFilterand(UnboundRecordFilter filter1, UnboundRecordFilter filter2) Returns builder for creating an and filter.booleanisMatch()Works out whether the current record can pass through the filter.
-
Method Details
-
and
public static final UnboundRecordFilter and(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 unbound and 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.
-