Class 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.
    See Also:
    ColumnIndexFilter.calculateRowRanges(Filter, ColumnIndexStore, Set, long)
    • 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 connection
        to - the last row of the range to be checked for connection
        Returns:
        true if the specified range is overlapping (have common elements) with one of the ranges