final class TablePartitionKey

What a table's division into partitions is by.

A key may be columns or expressions over them, and which partition a row belongs in is decided by evaluating it.

Properties§

public non-empty-list<string> $expressions

Methods§

public function __construct(
    public TablePartitionStrategy $strategy,
    public non-empty-list<string> $expressions,
)

Parameters

$strategyTablePartitionStrategy
$expressionsnon-empty-list<string>

Throws

InvalidDefinitionException When an expression the division is by is empty
Calls 2

Test cases 15§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 14

Relations§

Instantiated in 1
Type declarations 7