final class RowPairing

Which rows of a shadow before are which rows of the shadow after.

Pairing rows off is done in passes — the pairs an UPDATE tells us about first, then whatever the key can still match — and each pass has to know what the ones before it already took, or a row would be paired twice. Keeping the positions and the changes together is what makes that so.

Type Aliases§

Row = import from TableDefinition

Methods§

public function pair(int $beforeIndex, int $afterIndex, Row $beforeRow, Row $afterRow): void

Private surface 3§

Implementation details, listed for orientation only.

private list<int> $before = []
private list<int> $after = []
private list<RowChange> $changes = []

Test cases 14§

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

Dedicated tests 5
Other tests reaching this symbol 9

Relations§

Instantiated in 1
Method calls 10
Type declarations 3