Interface IColumnPositionCache

  • All Known Implementing Classes:
    ColumnPositionCache

    public interface IColumnPositionCache
    Interface for cache of columns positions
    • Method Detail

      • setColumnPositionCache

        void setColumnPositionCache​(Columns columns,
                                    int column,
                                    int position)
        Put position of specified column to cache
        Parameters:
        columns - - column type
        column - - column index
        position - - position of specified column (in units)
      • getColumnPositionCache

        Integer getColumnPositionCache​(Columns columns,
                                       int column)
        Get position of specified column from cache
        Parameters:
        columns - - column type
        column - - columns index
        Returns:
        position of specified column (in units) or null if position of specified column is not cached yet
      • clearCacheFromColumn

        void clearCacheFromColumn​(Columns columns,
                                  int column)
        Clear columns positions cache
        Parameters:
        columns - - columns type
        column - - columns index
      • clearColumnsCache

        void clearColumnsCache​(Columns columns)
        Clear columns positions cache for specified column type
        Parameters:
        columns - - column type
      • clearCache

        void clearCache()
        Clear columns positions cache
      • getSortedKeysCollection

        Collection<Integer> getSortedKeysCollection​(Columns columns)
        Get sorted collection of cached columns positions
        Parameters:
        columns - - column type
        Returns:
        sorted collection of columns positions (in units)
      • floorIndex

        Integer floorIndex​(int columnIndex,
                           Columns columns)
        Get maximal cached column index, less than specified
        Parameters:
        columnIndex - - column index
        columns - - columns type
        Returns:
        maximal cached column index, less than specified or null if no index found
      • highIndex

        Integer highIndex​(int columnIndex,
                          Columns columns)
        Get minimal cached column index, greater than specified
        Parameters:
        columnIndex - - column index
        columns - - columns type
        Returns:
        minimal cached column index, greater than specified or null if no index found