Package org.apache.parquet.filter
Class PagedRecordFilter
- java.lang.Object
-
- org.apache.parquet.filter.PagedRecordFilter
-
- All Implemented Interfaces:
RecordFilter
public final class PagedRecordFilter extends Object implements RecordFilter
Filter which will only materialize a page worth of results.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMatch()Keeps track of how many times it is called.static UnboundRecordFilterpage(long startPos, long pageSize)Returns builder for creating a paged query.
-
-
-
Method Detail
-
page
public static final UnboundRecordFilter page(long startPos, long pageSize)
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.
-
-