PHP Class PMA\libraries\Partition

Inheritance: extends PMA\libraries\SubPartition
Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Protected Properties

Property Type Description
$description partition description
$subPartitions sub partitions

Public Methods

Method Description
addSubPartition ( PMA\libraries\SubPartition $partition ) : void Add a sub partition
getDataLength ( ) : integer Returns the total data length
getDescription ( ) : string Returns the partiotion description
getIndexLength ( ) : integer Returns the tatal index length
getPartitionMethod ( string $db, string $table ) : string returns the partition method used by the table.
getPartitionNames ( string $db, string $table ) : array returns array of partition names for a specific db/table
getPartitions ( string $db, string $table ) : Partition[] Returns array of partitions for a specific db/table
getRows ( ) : integer Returns the number of data rows
getSubPartitions ( ) : PMA\libraries\SubPartition[] Returns the list of sub partitions
hasSubPartitions ( ) : boolean Whether there are sub partitions
havePartitioning ( ) : boolean checks if MySQL server supports partitioning

Protected Methods

Method Description
loadData ( array $row ) : void Loads data from the fetched row from information_schema.PARTITIONS

Method Details

addSubPartition() public method

Add a sub partition
public addSubPartition ( PMA\libraries\SubPartition $partition ) : void
$partition PMA\libraries\SubPartition Sub partition
return void

getDataLength() public method

Returns the total data length
public getDataLength ( ) : integer
return integer data length

getDescription() public method

Returns the partiotion description
public getDescription ( ) : string
return string partition description

getIndexLength() public method

Returns the tatal index length
public getIndexLength ( ) : integer
return integer index length

getPartitionMethod() public static method

returns the partition method used by the table.
public static getPartitionMethod ( string $db, string $table ) : string
$db string database name
$table string table name
return string partition method

getPartitionNames() public static method

returns array of partition names for a specific db/table
public static getPartitionNames ( string $db, string $table ) : array
$db string database name
$table string table name
return array of partition names

getPartitions() public static method

Returns array of partitions for a specific db/table
public static getPartitions ( string $db, string $table ) : Partition[]
$db string database name
$table string table name
return Partition[]

getRows() public method

Returns the number of data rows
public getRows ( ) : integer
return integer number of rows

getSubPartitions() public method

Returns the list of sub partitions
public getSubPartitions ( ) : PMA\libraries\SubPartition[]
return PMA\libraries\SubPartition[]

hasSubPartitions() public method

Whether there are sub partitions
public hasSubPartitions ( ) : boolean
return boolean

havePartitioning() public static method

checks if MySQL server supports partitioning
public static havePartitioning ( ) : boolean
return boolean

loadData() protected method

Loads data from the fetched row from information_schema.PARTITIONS
protected loadData ( array $row ) : void
$row array fetched row
return void

Property Details

$description protected property

partition description
protected $description

$subPartitions protected property

sub partitions
protected $subPartitions