Package org.apache.parquet.filter
Class PagedRecordFilter
java.lang.Object
org.apache.parquet.filter.PagedRecordFilter
- All Implemented Interfaces:
RecordFilter
Filter which will only materialize a page worth of results.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatch()Keeps track of how many times it is called.static UnboundRecordFilterpage(long startPos, long pageSize) Returns builder for creating a paged query.
-
Method Details
-
page
Returns builder for creating a paged query.- Parameters:
startPos- The record to start from, numbering starts at 1.pageSize- The size of the page.- Returns:
- a paged record filter
-
isMatch
public boolean isMatch()Keeps track of how many times it is called. Only returns matches when the record number is in the range.- Specified by:
isMatchin interfaceRecordFilter- Returns:
- true if the current value for the column reader matches the predicate.
-