Interface IRowPositionCache

  • All Known Implementing Classes:
    RowPositionCache

    public interface IRowPositionCache
    Interface for cache of row positions
    • Method Detail

      • setRowPositionCache

        void setRowPositionCache​(int row,
                                 int position)
        Put position of specified row to cache
        Parameters:
        row - - row index
        position - - row position (in units)
      • getRowPositionCache

        Integer getRowPositionCache​(int row)
        Get position of specified row from cache
        Parameters:
        row - - row index
        Returns:
        position of specified row (in units)
      • clearCacheFromRow

        void clearCacheFromRow​(int row)
        Clear cache of rows positions after specified row
        Parameters:
        row - - row index
      • clearCache

        void clearCache()
        Clear cache of rows positions
      • getSortedKeysCollection

        Collection<Integer> getSortedKeysCollection()
        Get sorted collection of cached positions
        Returns:
        sorted collection of cached positions (in units)
      • floorIndex

        Integer floorIndex​(int rowIndex)
        Get maximal cached row index, less than specified
        Parameters:
        rowIndex - - row index
        Returns:
        maximal cached row index, less than specified or null if no index found
      • highIndex

        Integer highIndex​(int rowIndex)
        Get minimal cached row index, greater than specified
        Parameters:
        rowIndex - - row index
        Returns:
        minimal cached row index, greater than specified or null if no index found