class SubPartition (View source)

Represents a sub partition of a table

Properties

protected string|null $name
protected int|null $ordinal
protected string|null $method
protected string|null $expression
protected int $rows
protected int $dataLength
protected int $indexLength
protected string $comment

Methods

__construct(array $row)

Constructs a partition

void
loadCommonData(array $row)

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

string|null
getName()

Return the partition name

int|null
getOrdinal()

Return the ordinal of the partition

string|null
getMethod()

Returns the partition method

string|null
getExpression()

Returns the partition expression

int
getRows()

Returns the number of data rows

int
getDataLength()

Returns the data length

int
getIndexLength()

Returns the index length

string
getComment()

Returns the partition comment

Details

__construct(array $row)

Constructs a partition

Parameters

array $row

fetched row from information_schema.PARTITIONS

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

string|null getName()

Return the partition name

Return Value

string|null

int|null getOrdinal()

Return the ordinal of the partition

Return Value

int|null

string|null getMethod()

Returns the partition method

Return Value

string|null

string|null getExpression()

Returns the partition expression

Return Value

string|null

int getRows()

Returns the number of data rows

Return Value

int

int getDataLength()

Returns the data length

Return Value

int

int getIndexLength()

Returns the index length

Return Value

int

string getComment()

Returns the partition comment

Return Value

string