class SubPartition

Represents a sub partition of a table

Properties

protected string $db
protected string $table
protected string $name
protected integer $ordinal
protected string $method
protected string $expression
protected integer $rows
protected integer $dataLength
protected integer $indexLength
protected string $comment

Methods

__construct(array $row)

Constructs a partition

void
loadData(array $row)

Loads data from the fetched row from information_schema.PARTITIONS

void
loadCommonData(array $row)

Loads some data that is common to both partitions and sub partitions

string
getName()

Return the partition name

int
getOrdinal()

Return the ordinal of the partition

string
getMethod()

Returns the partition method

string
getExpression()

Returns the partition expression

integer
getRows()

Returns the number of data rows

integer
getDataLength()

Returns the data length

integer
getIndexLength()

Returns the index length

string
getComment()

Returns the partition comment

Details

at line 64
__construct(array $row)

Constructs a partition

Parameters

array $row fetched row from information_schema.PARTITIONS

at line 78
protected void loadData(array $row)

Loads data from the fetched row from information_schema.PARTITIONS

Parameters

array $row fetched row

Return Value

void

at line 94
protected void loadCommonData(array $row)

Loads some data that is common to both partitions and sub partitions

Parameters

array $row fetched row

Return Value

void

at line 107
string getName()

Return the partition name

Return Value

string partition name

at line 117
int getOrdinal()

Return the ordinal of the partition

Return Value

int the ordinal

at line 127
string getMethod()

Returns the partition method

Return Value

string partition method

at line 137
string getExpression()

Returns the partition expression

Return Value

string partition expression

at line 147
integer getRows()

Returns the number of data rows

Return Value

integer number of rows

at line 157
integer getDataLength()

Returns the data length

Return Value

integer data length

at line 167
integer getIndexLength()

Returns the index length

Return Value

integer index length

at line 177
string getComment()

Returns the partition comment

Return Value

string partition comment