Class IndexAnalysisLauncher
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.launcher.AbstractAnalysisLauncher
org.pgcodekeeper.core.parsers.antlr.pg.launcher.AbstractPgAnalysisLauncher
org.pgcodekeeper.core.parsers.antlr.pg.launcher.IndexAnalysisLauncher
Launcher for analyzing PostgreSQL index definitions.
Extracts dependencies from index columns, storage parameters and WHERE clauses.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexAnalysisLauncher(PgIndex stmt, SQLParser.Index_restContext ctx, String location) Creates an index analyzer. -
Method Summary
Modifier and TypeMethodDescriptionanalyze(org.antlr.v4.runtime.ParserRuleContext ctx, MetaContainer meta) Analyzes the index definition to extract table dependencies.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.base.launcher.AbstractAnalysisLauncher
getReferences, getSchemaName, getStmt, launchAnalyze, setOffset, updateStmt
-
Constructor Details
-
IndexAnalysisLauncher
Creates an index analyzer.- Parameters:
stmt- the index statement to analyzectx- the index definition contextlocation- the source location identifier
-
-
Method Details
-
analyze
Analyzes the index definition to extract table dependencies. Processes index columns, storage parameters and WHERE clauses.- Parameters:
ctx- the parse tree contextmeta- metadata container for dependency resolution- Returns:
- set of object locations referenced in the index definition
-