final class WindowFrameRule
    implements RewriteRule

Implements the relative boundary order required by window.c/sqlite3WindowAlloc.

Methods§

public function rewrite(TerminalSequence $sequence): TerminalSequence

Completes short FOLLOWING frames and moves an earlier end to UNBOUNDED FOLLOWING.

Parameters

Test cases 11
Calls 5
public function rank(TerminalSequence $sequence, int $production): int

Orders boundary categories exactly as sqlite3WindowAlloc's source comment specifies.

Parameters

$sequenceTerminalSequence
$productionint

Returns

int
Test cases 16
Called from 1
Calls 2

Test cases 24§

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

Dedicated tests 18
Other tests reaching this symbol 6

Relations§

Instantiated in 1