Package io.github.mfvanek.pg.model.table
Class Table
java.lang.Object
io.github.mfvanek.pg.model.table.Table
- All Implemented Interfaces:
TableNameAware
,TableSizeAware
,Comparable<Table>
- Direct Known Subclasses:
TableWithBloat
,TableWithMissingIndex
A base representation of database table.
-
Constructor Details
-
Table
-
-
Method Details
-
getTableName
Gets table name.- Specified by:
getTableName
in interfaceTableNameAware
- Returns:
- table name
-
getTableSizeInBytes
public long getTableSizeInBytes()Gets table size in bytes.- Specified by:
getTableSizeInBytes
in interfaceTableSizeAware
- Returns:
- table size in bytes
-
innerToString
-
toString
-
equals
-
hashCode
public final int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Table>
-
of
Constructs aTable
object.- Parameters:
tableName
- table name; should be non blank.tableSizeInBytes
- table size in bytes; should be positive or zero.- Returns:
Table
-