Package com.avoka.fc.core.dao
Class DataRetentionInfoDao.TableSize
- java.lang.Object
-
- com.avoka.fc.core.dao.DataRetentionInfoDao.TableSize
-
- Enclosing class:
- DataRetentionInfoDao
public static class DataRetentionInfoDao.TableSize extends Object
Provides a Table Size class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAvgRowSize()
double
getDataLength()
double
getIndexLength()
double
getPercentage()
String
getTableName()
long
getTableRows()
double
getTotalLength()
long
getTotalLengthBytes()
void
setPercentage(double percent)
Set tables percentage size of the total database
-
-
-
Constructor Detail
-
TableSize
public TableSize(String tableName, long tableRows, long dataLength, long indexLength)
Create a Table Size info class.- Parameters:
tableName
- the table nametableRows
- the number of table rowsdataLength
- the table data sizeindexLength
- 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
-
-