Package org.apache.parquet.filter
Class ColumnRecordFilter
java.lang.Object
org.apache.parquet.filter.ColumnRecordFilter
- All Implemented Interfaces:
RecordFilter
Record filter which applies the supplied predicate to the specified column.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final UnboundRecordFiltercolumn(String columnPath, ColumnPredicates.Predicate predicate) Factory method for record filter which applies the supplied predicate to the specified column.booleanisMatch()Works out whether the current record can pass through the filter.
-
Method Details
-
column
public static final UnboundRecordFilter column(String columnPath, ColumnPredicates.Predicate predicate) Factory method for record filter which applies the supplied predicate to the specified column. Note that if searching for a repeated sub-attribute it will only ever match against the first instance of it in the object.- Parameters:
columnPath- Dot separated path specifier, e.g. "engine.capacity"predicate- Should call getBinary etc. and check the value- Returns:
- a column 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.
-