Class DataRetentionInfoDao.TableSize

  • Enclosing class:
    DataRetentionInfoDao

    public static class DataRetentionInfoDao.TableSize
    extends Object
    Provides a Table Size class.
    • Constructor Detail

      • TableSize

        public TableSize​(String tableName,
                         long tableRows,
                         long dataLength,
                         long indexLength)
        Create a Table Size info class.
        Parameters:
        tableName - the table name
        tableRows - the number of table rows
        dataLength - the table data size
        indexLength - the table index size
    • Method Detail

      • getTableName

        public String getTableName()
        Returns:
        the tableName
      • getTableRows

        public long getTableRows()
        Returns:
        the number of table rows
      • getAvgRowSize

        public double getAvgRowSize()
        Returns:
        the average table row size in KB
      • getDataLength

        public double getDataLength()
        Returns:
        the dataLength (MB)
      • getIndexLength

        public double getIndexLength()
        Returns:
        the indexLength (MB)
      • getTotalLength

        public double getTotalLength()
        Returns:
        the totalLength (MB)
      • getTotalLengthBytes

        public long getTotalLengthBytes()
        Returns:
        the total length bytes
      • setPercentage

        public void setPercentage​(double percent)
        Set tables percentage size of the total database
        Parameters:
        percent - the percentage size
      • getPercentage

        public double getPercentage()
        Returns:
        the tables percentage size of the total database