Class RowRanges
- java.lang.Object
-
- org.apache.parquet.internal.filter2.columnindex.RowRanges
-
public class RowRanges extends Object
Class representing row ranges in a row-group. These row ranges are calculated as a result of the column index based filtering. To be used iterate over the matching row indexes to be read from a row-group, retrieve the count of the matching rows or check overlapping of a row index range.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRowRanges.Range
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RowRanges.Range>getRanges()booleanisOverlapping(long from, long to)PrimitiveIterator.OfLongiterator()longrowCount()StringtoString()
-
-
-
Method Detail
-
rowCount
public long rowCount()
- Returns:
- the number of rows in the ranges
-
iterator
public PrimitiveIterator.OfLong iterator()
- Returns:
- the ascending iterator of the row indexes contained in the ranges
-
isOverlapping
public boolean isOverlapping(long from, long to)- Parameters:
from- the first row of the range to be checked for connectionto- the last row of the range to be checked for connection- Returns:
trueif the specified range is overlapping (have common elements) with one of the ranges
-
getRanges
public List<RowRanges.Range> getRanges()
-
-