PHP Класс PMA\libraries\Partition

Наследование: extends PMA\libraries\SubPartition
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$description partition description
$subPartitions sub partitions

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
loadData ( array $row ) : void Loads data from the fetched row from information_schema.PARTITIONS

Описание методов

addSubPartition() публичный Метод

Add a sub partition
public addSubPartition ( PMA\libraries\SubPartition $partition ) : void
$partition PMA\libraries\SubPartition Sub partition
Результат void

getDataLength() публичный Метод

Returns the total data length
public getDataLength ( ) : integer
Результат integer data length

getDescription() публичный Метод

Returns the partiotion description
public getDescription ( ) : string
Результат string partition description

getIndexLength() публичный Метод

Returns the tatal index length
public getIndexLength ( ) : integer
Результат integer index length

getPartitionMethod() публичный статический Метод

returns the partition method used by the table.
public static getPartitionMethod ( string $db, string $table ) : string
$db string database name
$table string table name
Результат string partition method

getPartitionNames() публичный статический Метод

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
Результат array of partition names

getPartitions() публичный статический Метод

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
Результат Partition[]

getRows() публичный Метод

Returns the number of data rows
public getRows ( ) : integer
Результат integer number of rows

getSubPartitions() публичный Метод

Returns the list of sub partitions
public getSubPartitions ( ) : PMA\libraries\SubPartition[]
Результат PMA\libraries\SubPartition[]

hasSubPartitions() публичный Метод

Whether there are sub partitions
public hasSubPartitions ( ) : boolean
Результат boolean

havePartitioning() публичный статический Метод

checks if MySQL server supports partitioning
public static havePartitioning ( ) : boolean
Результат boolean

loadData() защищенный Метод

Loads data from the fetched row from information_schema.PARTITIONS
protected loadData ( array $row ) : void
$row array fetched row
Результат void

Описание свойств

$description защищенное свойство

partition description
protected $description

$subPartitions защищенное свойство

sub partitions
protected $subPartitions