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
Test cases 1
Calls 2

Test cases 3§

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 2

Relations§

Constant reads 1
Type declarations 3