enumWindowFunctionKind
enum WindowFunctionKind: string
Public API: explicitly declared with
@visibility public.The functions that are only window functions.
Each case holds the keyword. Source: https://dev.mysql.com/doc/refman/8.4/en/window-function-descriptions.html.
\SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunctionKind::Lead->arity() // => [1, 3]Cases§
case RowNumber = 'ROW_NUMBER'case Rank = 'RANK'case DenseRank = 'DENSE_RANK'case CumulativeDistribution = 'CUME_DIST'case PercentRank = 'PERCENT_RANK'case Tile = 'NTILE'case Lead = 'LEAD'case Lag = 'LAG'case FirstValue = 'FIRST_VALUE'case LastValue = 'LAST_VALUE'case NthValue = 'NTH_VALUE'Methods§
public function arity(): array{int, int}Answers the smallest and the largest number of arguments.
Returns
array{int, int}Called from 1
Calls 11
- class-const WindowFunctionKind::RowNumber() line 39
- class-const WindowFunctionKind::Rank() line 39
- class-const WindowFunctionKind::DenseRank() line 39
- class-const WindowFunctionKind::CumulativeDistribution() line 39
- class-const WindowFunctionKind::PercentRank() line 39
- class-const WindowFunctionKind::Tile() line 40
- class-const WindowFunctionKind::FirstValue() line 40
- class-const WindowFunctionKind::LastValue() line 40
- class-const WindowFunctionKind::Lead() line 41
- class-const WindowFunctionKind::Lag() line 41
- class-const WindowFunctionKind::NthValue() line 42
public function treatsNulls(): boolTells whether the function takes RESPECT NULLS or IGNORE NULLS.
Returns
boolCalled from 1
Calls 6
- function-call
in_arrayline 51 - class-const WindowFunctionKind::Lead() line 51
- class-const WindowFunctionKind::Lag() line 51
- class-const WindowFunctionKind::FirstValue() line 51
- class-const WindowFunctionKind::LastValue() line 51
- class-const WindowFunctionKind::NthValue() line 51
public function counted(): ?intAnswers the position of the argument that must be an integer, a parameter or a variable, if any.
Returns
?intCalled from 1
Calls 11
- class-const WindowFunctionKind::Tile() line 60
- class-const WindowFunctionKind::Lead() line 61
- class-const WindowFunctionKind::Lag() line 61
- class-const WindowFunctionKind::RowNumber() line 62
- class-const WindowFunctionKind::Rank() line 62
- class-const WindowFunctionKind::DenseRank() line 62
- class-const WindowFunctionKind::CumulativeDistribution() line 62
- class-const WindowFunctionKind::PercentRank() line 62
- class-const WindowFunctionKind::FirstValue() line 62
- class-const WindowFunctionKind::LastValue() line 62
- class-const WindowFunctionKind::NthValue() line 62
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 5
WindowRuleTest::testFunctionLowersTheValueFunctionscallsWindowResultsTest::testResultReportsIgnoreNullsAndFromLastcallsWindowResultsTest::testResultTypesEachKindOfWindowFunctioncallsWindowFunctionTest::testDeriveScalarDerivesTheArgumentsAndTheWindowcallsWindowFunctionTest::testRenderWritesTheOptionsBeforeTheWindowcalls
Relations§
Method calls 3
- method-call SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction::__construct() packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:66
- method-call SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction::__construct() packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:68
- method-call SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction::__construct() packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:70
Constant reads 24
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:42
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:43
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:44
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:45
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:46
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:47
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:48
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:49
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:50
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:51
- class-const SqlSemantics\Platform\MySql\Lowering\Call\WindowRule packages/sql-semantics-mysql/src/Lowering/Call/WindowRule.php:52
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:52
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:52
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:52
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:53
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:54
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:55
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:56
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:56
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:60
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:60
- class-const SqlSemantics\Platform\MySql\Rules\Call\WindowResults::result() packages/sql-semantics-mysql/src/Rules/Call/WindowResults.php:61
- class-const SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction::__construct() packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:69
- class-const SqlSemantics\Platform\MySql\Statement\Call\Window\WindowFunction::__construct() packages/sql-semantics-mysql/src/Statement/Call/Window/WindowFunction.php:72