classSampleTokens
final class SampleTokens
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Sample tokens operations for PostgreSQL sampling.
Methods§
Returns
?intTest cases 1
Called from 1
Calls 2
- method-call SampleTokens::sameLevel() line 41
- method-call SampleTokens::isRelationBoundary() line 47
public function isRelationBoundary(SqlToken $token): boolIs relation boundary.
Parameters
$token | SqlToken |
Returns
boolTest cases 1
Called from 1
Calls 1
- method-call SqlToken::isKeyword() line 61
Is opening parenthesis.
Returns
boolTest cases 1
Called from 2
Calls 1
- method-call SampleTokens::sameLevel() line 74
public function closingParenthesisIndex(list<SqlToken> $tokens, int $openIndex): ?intParameters
$tokens | list<SqlToken> | |
$openIndex | int |
Returns
?intTest cases 1
Called from 2
Calls 1
- method-call SampleTokens::sameLevel() line 90
Returns
Test cases 1
Same level.
Returns
boolTest cases 1
Called from 4
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:82
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleTokens::sampleIndexAfter() packages/ztd-query-postgres/src/Sql/Sampling/SampleTokens.php:41
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleTokens::isOpeningParenthesis() packages/ztd-query-postgres/src/Sql/Sampling/SampleTokens.php:74
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleTokens::closingParenthesisIndex() packages/ztd-query-postgres/src/Sql/Sampling/SampleTokens.php:90
Test cases 19§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 7
SampleTokensTest::testClosingParenthesisIndexcallsSampleTokensTest::testIsOpeningParenthesiscallsSampleTokensTest::testIsRelationBoundarycallsSampleTokensTest::testSameLevelcallsSampleTokensTest::testSampleIndexAftercallsSampleTokensTest::testTokenAftercallsSampleTokensTest::testTokenAtOffsetcalls
Other tests reaching this symbol 12
PgSqlSessionFactoryTestcallsPgSqlRewriterTestcallsPgSqlTableSampleRewriterTestcallsStatementRewriterTestcallsDeleteTransformerTestcallsInsertTransformerTestcallsMergeTransformerTestcallsPgSqlTransformerTestcallsSelectTransformerTestcallsUpdateTransformerTestcallsPgSqlTableSampleParserTestcallsSampleClauseTestcalls
Relations§
Instantiated in 8
- new ZtdQuery\Platform\Postgres\Sql\Sampling\PgSqlTableSampleParser::parse() packages/ztd-query-postgres/src/Sql/Sampling/PgSqlTableSampleParser.php:26
- new ZtdQuery\Platform\Postgres\Sql\Sampling\PgSqlTableSampleParser::parse() packages/ztd-query-postgres/src/Sql/Sampling/PgSqlTableSampleParser.php:30
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::parseSample() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:41
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::parseSample() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:44
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:82
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:86
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:89
- new ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::aliasSql() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:112
Method calls 8
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\PgSqlTableSampleParser::parse() packages/ztd-query-postgres/src/Sql/Sampling/PgSqlTableSampleParser.php:26
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\PgSqlTableSampleParser::parse() packages/ztd-query-postgres/src/Sql/Sampling/PgSqlTableSampleParser.php:30
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::parseSample() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:41
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::parseSample() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:44
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:82
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:86
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::repeatable() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:89
- method-call ZtdQuery\Platform\Postgres\Sql\Sampling\SampleClause::aliasSql() packages/ztd-query-postgres/src/Sql/Sampling/SampleClause.php:112