Class RowPositionCache

    • Constructor Detail

      • RowPositionCache

        public RowPositionCache()
        Creates new instance of RowPositionCache
    • Method Detail

      • setRowPositionCache

        public void setRowPositionCache​(int row,
                                        int position)
        Description copied from interface: IRowPositionCache
        Put position of specified row to cache
        Specified by:
        setRowPositionCache in interface IRowPositionCache
        Parameters:
        row - - row index
        position - - row position (in units)
      • getRowPositionCache

        public Integer getRowPositionCache​(int row)
        Description copied from interface: IRowPositionCache
        Get position of specified row from cache
        Specified by:
        getRowPositionCache in interface IRowPositionCache
        Parameters:
        row - - row index
        Returns:
        position of specified row (in units)
      • clearCacheFromRow

        public void clearCacheFromRow​(int row)
        Description copied from interface: IRowPositionCache
        Clear cache of rows positions after specified row
        Specified by:
        clearCacheFromRow in interface IRowPositionCache
        Parameters:
        row - - row index
      • floorIndex

        public Integer floorIndex​(int rowIndex)
        Description copied from interface: IRowPositionCache
        Get maximal cached row index, less than specified
        Specified by:
        floorIndex in interface IRowPositionCache
        Parameters:
        rowIndex - - row index
        Returns:
        maximal cached row index, less than specified or null if no index found
      • highIndex

        public Integer highIndex​(int rowIndex)
        Description copied from interface: IRowPositionCache
        Get minimal cached row index, greater than specified
        Specified by:
        highIndex in interface IRowPositionCache
        Parameters:
        rowIndex - - row index
        Returns:
        minimal cached row index, greater than specified or null if no index found